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