]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/align/include/boost/align/detail/alignment_of.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / align / include / boost / align / detail / alignment_of.hpp
1 /*
2 (c) 2014-2015 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_ALIGNMENT_OF_HPP
10 #define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP
11
12 #include <boost/align/detail/min_size.hpp>
13
14 namespace boost {
15 namespace alignment {
16 namespace detail {
17
18 template<class T>
19 struct alignof_helper {
20 char value;
21 T object;
22 };
23
24 template<class T>
25 struct alignment_of
26 : min_size<sizeof(T), sizeof(alignof_helper<T>) - sizeof(T)> { };
27
28 } /* .detail */
29 } /* .alignment */
30 } /* .boost */
31
32 #endif