2 Copyright 2014 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_ALIGN_IS_ALIGNED_HPP
10 #define BOOST_ALIGN_IS_ALIGNED_HPP
12 #include <boost/align/detail/is_aligned.hpp>
13 #include <boost/align/detail/not_pointer.hpp>
19 BOOST_CONSTEXPR inline typename detail::not_pointer<T, bool>::type
20 is_aligned(T value, std::size_t alignment) BOOST_NOEXCEPT
22 return (value & (T(alignment) - 1)) == 0;