Connecting Tech Pros Worldwide Forums | Help | Site Map

What is "POD"

Matej Pivoluska
Guest
 
Posts: n/a
#1: Jul 22 '05
Hello,

could anybody explain me, what abbrevation POD means? I think, this is just
human-language (English vs. Slovak) problem.


Thanks,

--
mP

http://pivoluska.matfyz.cz/

Jeff Schwab
Guest
 
Posts: n/a
#2: Jul 22 '05

re: What is "POD"


Plain Old Data. Usually means built-in types.

Matej Pivoluska wrote:[color=blue]
> Hello,
>
> could anybody explain me, what abbrevation POD means? I think, this is just
> human-language (English vs. Slovak) problem.
>
>
> Thanks,
>[/color]

osmium
Guest
 
Posts: n/a
#3: Jul 22 '05

re: What is "POD"


Matej Pivoluska writes:
[color=blue]
> could anybody explain me, what abbrevation POD means? I think, this is[/color]
just[color=blue]
> human-language (English vs. Slovak) problem.[/color]

Once in a while common sense bites back. No, it has a special meaning to
people who obsess about these things. Try google advanced groups. As I
understand it the *acronym* is for Plain Old Data. But it has a *meaning*
more restrictive than what I infer from that phrase.


David Harmon
Guest
 
Posts: n/a
#4: Jul 22 '05

re: What is "POD"


On Sun, 14 Dec 2003 17:42:58 +0100 in comp.lang.c++, Matej Pivoluska was alleged to have written:[color=blue]
>could anybody explain me, what abbrevation POD means?[/color]

Plain Old Data is any built in or user-defined type that has:

- no user-defined constructor
- no user-defined copy assignment operator
- no user defined destructor
- no virtual functions
- no base class (i.e. it is not a derived class)
- no private or protected non-static data members
- no non-static members of type pointer to member
- no non-static members that are references
- no non-static data members that are not also POD types

Tim Threlfall
Guest
 
Posts: n/a
#5: Jul 22 '05

re: What is "POD"




Matej Pivoluska wrote:[color=blue]
> Hello,
>
> could anybody explain me, what abbrevation POD means? I think, this is just
> human-language (English vs. Slovak) problem.
>
>
> Thanks,
>[/color]

POD is an acronym for “plain old data.”

Section 3.9 paragraph 10 describes POD types as

Arithmetic types (3.9.1), enumeration types, pointer types, and pointer
to member types (3.9.2), and cv-qualified versions of these types
(3.9.3) are collectively called scalar types. Scalar types, POD-struct
types, POD-union types (clause 9), arrays of such types and cv-qualified
versions of these types (3.9.3) are collec-tively called POD types.

9.0.4

A POD-struct is an aggregate class that has no non-static data members
of type pointer to member, non-POD-struct, non-POD-union (or array of
such types) or reference, and has no user-defined copy assign-ment
operator and no user-defined destructor. Similarly, a POD-union is an
aggregate union that has no non-static data members of type pointer to
member, non-POD-struct, non-POD-union (or array of such types) or
reference, and has no user-defined copy assignment operator and no
user-defined destructor. A POD class is a class that is either a
POD-struct or a POD-union.

Closed Thread