What is "POD"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matej Pivoluska

    What is "POD"

    Hello,

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


    Thanks,

    --
    mP


  • Jeff Schwab

    #2
    Re: What is "POD&qu ot;

    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]

    Comment

    • osmium

      #3
      Re: What is "POD&qu ot;

      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.


      Comment

      • David Harmon

        #4
        Re: What is "POD&qu ot;

        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

        Comment

        • Tim Threlfall

          #5
          Re: What is "POD&qu ot;



          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.

          Comment

          Working...