12345678910111213141516171819202122232425262728 |
- #ifndef BOOST_ALIGN_IS_ALIGNED_HPP
- #define BOOST_ALIGN_IS_ALIGNED_HPP
- #include <boost/align/detail/is_aligned.hpp>
- #include <boost/align/detail/not_pointer.hpp>
- namespace boost {
- namespace alignment {
- template<class T>
- BOOST_CONSTEXPR inline typename detail::not_pointer<T, bool>::type
- is_aligned(T value, std::size_t alignment) BOOST_NOEXCEPT
- {
- return (value & (T(alignment) - 1)) == 0;
- }
- }
- }
- #endif
|