Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This version of Boost is under active development. You are currently in the master branch. The current version is 1.91.0.
The header <boost/core/alignof.hpp> defines the macro BOOST_CORE_ALIGNOF,
a portable equivalent of the alignof
operator from C++11.
#include <boost/core/alignof.hpp> #include <cstddef> constexpr std::size_t alignment_of_double = BOOST_CORE_ALIGNOF(double);