tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
aligned_storage< Len, Align > Struct Template Reference

Provides the nested type type, which is a trivial standard-layout type suitable for use as uninitialized storage for any object whose size is at most Len and whose alignment requirement is a divisor of Align. The default value of Align is the most stringent (the largest) alignment requirement for any object whose size is at most Len. If the default value is not used, Align must be the value of alignof(T) for some type T, or the behavior is undefined. More...

#include <aligned_storage.hpp>

Classes

struct  type
 

Detailed Description

template<size_t Len, size_t Align = alignof(detail::aligned_storage_impl<Len>)>
struct etl::aligned_storage< Len, Align >

Provides the nested type type, which is a trivial standard-layout type suitable for use as uninitialized storage for any object whose size is at most Len and whose alignment requirement is a divisor of Align. The default value of Align is the most stringent (the largest) alignment requirement for any object whose size is at most Len. If the default value is not used, Align must be the value of alignof(T) for some type T, or the behavior is undefined.


The documentation for this struct was generated from the following file: