Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.


Header <boost/core/max_align.hpp>


  • Peter Dimov

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