Namespaces
Variants
Views
Actions

cpp/named req/PODType

From cppreference.com
< cpp‎ | named req
Revision as of 08:35, 9 June 2013 by P12 (Talk | contribs)

Template:cpp/concept/title Template:cpp/concept/navbar Specifies that the type is POD (Plain Old Data) type. This means the type is compatible with the types used in the C programming language, can be manipulated using C library functions: it can be created with std::malloc, it can be copied with std::memmove, etc, and can be exchanged with C libraries directly, in its binary form.

Template:cpp/concept/concept note

Requirements

Either

Or a class type (class or struct or union) that is

  • an Template:concept
  • has no non-static members that are non-POD
  • has no members of reference type
  • has no user-defined copy constructor
  • has no user-defined destructor
(until C++11)
(since C++11)

Or an array of such type

See also

(C++11)(deprecated in C++20)
checks if a type is a plain-old data (POD) type
(class template) [edit]