diff options
Diffstat (limited to 'boost/align/detail/is_aligned.hpp')
-rw-r--r-- | boost/align/detail/is_aligned.hpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/boost/align/detail/is_aligned.hpp b/boost/align/detail/is_aligned.hpp index 41fb80581f..a861e9f4c8 100644 --- a/boost/align/detail/is_aligned.hpp +++ b/boost/align/detail/is_aligned.hpp @@ -1,10 +1,10 @@ /* - (c) 2014 Glen Joseph Fernandes - glenjofe at gmail dot com +(c) 2014 Glen Joseph Fernandes +glenjofe at gmail dot com - Distributed under the Boost Software - License, Version 1.0. - http://boost.org/LICENSE_1_0.txt +Distributed under the Boost Software +License, Version 1.0. +http://boost.org/LICENSE_1_0.txt */ #ifndef BOOST_ALIGN_DETAIL_IS_ALIGNED_HPP #define BOOST_ALIGN_DETAIL_IS_ALIGNED_HPP @@ -16,14 +16,16 @@ #include <cstddef> namespace boost { - namespace alignment { - inline bool is_aligned(std::size_t alignment, - const void* ptr) BOOST_NOEXCEPT - { - BOOST_ASSERT(detail::is_alignment(alignment)); - return (detail::address_t(ptr) & (alignment - 1)) == 0; - } - } +namespace alignment { + +inline bool is_aligned(std::size_t alignment, const void* ptr) + BOOST_NOEXCEPT +{ + BOOST_ASSERT(detail::is_alignment(alignment)); + return (detail::address_t(ptr) & (alignment - 1)) == 0; } +} /* :alignment */ +} /* :boost */ + #endif |