Results 1 to 4 of 4

Thread: What is a POD- Plain Old Data ?

  1. #1
    Join Date
    Sep 2009
    Posts
    143

    What is a POD- Plain Old Data ?

    While studying C++ I have come accross a term called POD - Plain Old Data. But even after reading it I am not getting what exactly is POD type ? I have started learning C++ very recently. I am already confused with many other topics of C++ and now I am assigned to get the information of POD type. Please help me.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is a POD- Plain Old Data ?

    Well to give a proper definition of POD(Plain Old Data) type will be quite confusing. First lets describe a POD class. A POD class has no user-defined destructor, no user-defined copy assignment operator and no non-static data members. A POD type in C++ is thus said to be as either a scalar type or a POD class. A POD type's non-static data members must always be public.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is a POD- Plain Old Data ?

    "POD" is an acronym for Plain Old Data in C++. This usually indicates the areas of substantive compatibility between comparable data types of C++ and C. POD types in C++ are POD class types and Scalar types. The terms POD and POD objects are often used interchangeably refering to the C++. Scalar types iclude: enumeration types, arithmetic types, pointer types and pointer-to-member types. POD class types relates to the aggregate classes, i.e. POD-struct types and aggregate unions, i.e. POD-union types, which should not contain these following as members: non-static data (including arrays) of any pointer-to-member type, non-static data of any reference type, non-static data (including arrays) of any non-POD class type, user-defined destructor and user-defined copy assignment operator.
    Last edited by kelfro; 10-11-2009 at 06:15 PM.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: What is a POD- Plain Old Data ?

    I can understand how confusing and difficult is this POD concept for a new user. I too faced similar issue when I started C++. POD is simply a short form for Plain Old Data which is sometimes also referred as POD type. POD is said to be a struct or class with no members except for the data members. To simply we can say a POD class is a structure that is compatible with C.

Similar Threads

  1. How to print plain text using C++ program
    By Gangeya in forum Software Development
    Replies: 5
    Last Post: 19-08-2011, 09:42 PM
  2. How to paste plain-text from table
    By Indrayan in forum Windows Software
    Replies: 4
    Last Post: 20-07-2011, 07:24 PM
  3. Is Maemo 6 loosing compatibility with plain Qt and Symbian4
    By Satchel in forum Operating Systems
    Replies: 4
    Last Post: 15-01-2011, 04:43 AM
  4. Emails being converted to plain text since AVG 8.0
    By Muhammad Waqar in forum Networking & Security
    Replies: 3
    Last Post: 05-09-2009, 10:49 AM
  5. How to Send a Message in Plain Text in Outlook
    By Chain-SmokeR in forum Windows Software
    Replies: 3
    Last Post: 02-07-2009, 11:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,438,402.86150 seconds with 17 queries