...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::alignment::aligned_allocator<void, Alignment>
// In header: <boost/align/aligned_allocator.hpp> template<std::size_t Alignment> class aligned_allocator<void, Alignment> { public: // types typedef void value_type; typedef void * pointer; typedef const void * const_pointer; // member classes/structs/unions template<typename U> struct rebind { // types typedef aligned_allocator< U, Alignment > other; }; };