2 (c) 2014-2016 Glen Joseph Fernandes
3 <glenjofe -at- gmail.com>
5 Distributed under the Boost Software
7 http://boost.org/LICENSE_1_0.txt
9 #ifndef BOOST_ALIGN_ALIGNMENT_OF_HPP
10 #define BOOST_ALIGN_ALIGNMENT_OF_HPP
12 #include <boost/align/detail/element_type.hpp>
13 #include <boost/align/alignment_of_forward.hpp>
15 #if defined(BOOST_MSVC)
16 #include <boost/align/detail/alignment_of_msvc.hpp>
17 #elif defined(__GNUC__) && defined(__unix__) && !defined(__LP64__)
18 #include <boost/align/detail/alignment_of.hpp>
19 #elif defined(BOOST_CLANG) && !defined(__x86_64__)
20 #include <boost/align/detail/alignment_of.hpp>
21 #elif !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
22 #include <boost/align/detail/alignment_of_cxx11.hpp>
23 #elif defined(__ghs__) && (__GHS_VERSION_NUMBER >= 600)
24 #include <boost/align/detail/alignment_of_gcc.hpp>
25 #elif defined(__CODEGEARC__)
26 #include <boost/align/detail/alignment_of_codegear.hpp>
27 #elif defined(BOOST_CLANG)
28 #include <boost/align/detail/alignment_of_clang.hpp>
30 #include <boost/align/detail/alignment_of_gcc.hpp>
31 #elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)
32 #include <boost/align/detail/alignment_of_gcc.hpp>
34 #include <boost/align/detail/alignment_of.hpp>
42 : detail::alignment_of<typename detail::element_type<T>::type> { };
44 #if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES)
46 constexpr std::size_t alignment_of_v = alignment_of<T>::value;