...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The header <boost/core/max_align.hpp>
defines the type boost::core::max_align_t
, a portable equivalent of
std::max_align_t
, and the constant boost::core::max_align
, the alignment of max_align_t
.
namespace boost { namespace core { union max_align_t; constexpr std::size_t max_align = alignof(max_align_t); } // namespace core } // namespace boost