...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
template <std::size_t Size, std::size_t Align>
struct aligned_storage
{
typedef see-below
type;
};
type: a built-in or POD type with size
Size
and an alignment that
is a multiple of Align
.
Header: #include
<boost/type_traits/aligned_storage.hpp>
or #include <boost/type_traits.hpp>