What is "POD"

M

Matej Pivoluska

Hello,

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


Thanks,
 
D

David Harmon

could anybody explain me, what abbrevation POD means?

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
 
T

Tim Threlfall

Matej said:
Hello,

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


Thanks,

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.
 
O

osmium

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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top