1 /* 2 Copyright 2014 Glen Joseph Fernandes 3 (glenjofe@gmail.com) 4 5 Distributed under the Boost Software License, Version 1.0. 6 (http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 #ifndef BOOST_ALIGN_DETAIL_MAX_OBJECTS_HPP 9 #define BOOST_ALIGN_DETAIL_MAX_OBJECTS_HPP 10 11 #include <boost/align/detail/integral_constant.hpp> 12 #include <cstddef> 13 14 namespace boost { 15 namespace alignment { 16 namespace detail { 17 18 template<class T> 19 struct max_objects 20 : integral_constant<std::size_t, 21 ~static_cast<std::size_t>(0) / sizeof(T)> { }; 22 23 } /* detail */ 24 } /* alignment */ 25 } /* boost */ 26 27 #endif 28