By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

What is "POD"

P: n/a
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/
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Plain Old Data. Usually means built-in types.

Matej Pivoluska wrote:
Hello,

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


Jul 22 '05 #2

P: n/a
Matej Pivoluska writes:
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.
Jul 22 '05 #3

P: n/a
On Sun, 14 Dec 2003 17:42:58 +0100 in comp.lang.c++, Matej Pivoluska was alleged to have written:
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

Jul 22 '05 #4

P: n/a


Matej Pivoluska wrote:
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.

Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.