/* Copyright 2014 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #ifndef ACTIV_BOOST_ALIGN_IS_ALIGNED_HPP #define ACTIV_BOOST_ALIGN_IS_ALIGNED_HPP #include #include namespace Boost { namespace alignment { template ACTIV_BOOST_CONSTEXPR inline typename detail::not_pointer::type is_aligned(T value, std::size_t alignment) ACTIV_BOOST_NOEXCEPT { return (value & (T(alignment) - 1)) == 0; } } /* alignment */ } /* boost */ #endif