• structs have default public members and bases
  • use structs for POD types

A Plain Old Data Structure in C++ is an aggregate class that contains only PODS as members, has no user-defined destructor, no user-defined copy assignment operator, and no nonstatic members of pointer-to-member type.

  • programming_languages/cpp/struct.txt
  • Last modified: 2017/02/19 15:46
  • by phreazer