is_alignment.hpp
Go to the documentation of this file.
1 /*
2 (c) 2014 Glen Joseph Fernandes
3 <glenjofe -at- gmail.com>
4 
5 Distributed under the Boost Software
6 License, Version 1.0.
7 http://boost.org/LICENSE_1_0.txt
8 */
9 #ifndef BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP
10 #define BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP
11 
12 #include <boost/config.hpp>
13 #include <cstddef>
14 
15 namespace boost {
16 namespace alignment {
17 namespace detail {
18 
19 BOOST_CONSTEXPR inline bool is_alignment(std::size_t value)
21 {
22  return (value > 0) && ((value & (value - 1)) == 0);
23 }
24 
25 } /* .detail */
26 } /* .alignment */
27 } /* .boost */
28 
29 #endif
config.hpp
BOOST_CONSTEXPR
#define BOOST_CONSTEXPR
Definition: suffix.hpp:961
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
BOOST_NOEXCEPT
#define BOOST_NOEXCEPT
Definition: suffix.hpp:938
boost::alignment::detail::is_alignment
BOOST_CONSTEXPR bool is_alignment(std::size_t value) BOOST_NOEXCEPT
Definition: is_alignment.hpp:19


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:40:00