2 Copyright 2014-2016 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_ALIGN_ALIGNMENT_OF_HPP
9 #define BOOST_ALIGN_ALIGNMENT_OF_HPP
11 #include <boost/align/detail/element_type.hpp>
12 #include <boost/align/alignment_of_forward.hpp>
14 #if defined(BOOST_MSVC)
15 #include <boost/align/detail/alignment_of_msvc.hpp>
16 #elif defined(__GNUC__) && defined(__unix__) && !defined(__LP64__)
17 #include <boost/align/detail/alignment_of.hpp>
18 #elif defined(BOOST_CLANG) && !defined(__x86_64__)
19 #include <boost/align/detail/alignment_of.hpp>
20 #elif !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
21 #include <boost/align/detail/alignment_of_cxx11.hpp>
22 #elif defined(__ghs__) && (__GHS_VERSION_NUMBER >= 600)
23 #include <boost/align/detail/alignment_of_gcc.hpp>
24 #elif defined(__CODEGEARC__)
25 #include <boost/align/detail/alignment_of_codegear.hpp>
26 #elif defined(BOOST_CLANG)
27 #include <boost/align/detail/alignment_of_clang.hpp>
29 #include <boost/align/detail/alignment_of_gcc.hpp>
30 #elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)
31 #include <boost/align/detail/alignment_of_gcc.hpp>
33 #include <boost/align/detail/alignment_of.hpp>
41 : detail::alignment_of<typename
42 detail::element_type<T>::type>::type { };
44 #if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES)
46 constexpr std::size_t alignment_of_v = alignment_of<T>::value;