Struct Ase::AlignedPOD
template <size_t SIZE>
ClassList > Ase > AlignedPOD
#include <randomhash.hh>
Public Attributes
Type | Name |
---|---|
std::aligned_storage< SIZE, 16 >::type | mem |
Detailed Description
Helper to provide memory for placement new AlignedPOD<SIZE> is aligned like max_align_t or like malloc()-ed memory and provides SIZE bytes. Idiomatic use is:
static AlignedPOD<sizeof (std::string)> pod_mem;
std::string *str = new (&pod_mem) std::string();
Public Attributes Documentation
variable mem
std::aligned_storage<SIZE,16>::type Ase::AlignedPOD< SIZE >::mem;
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/randomhash.hh