2 (c) 2015 Glen Joseph Fernandes
3 <glenjofe -at- gmail.com>
5 Distributed under the Boost Software
7 http://boost.org/LICENSE_1_0.txt
9 #ifndef BOOST_ALIGN_DETAIL_ALIGN_UP_HPP
10 #define BOOST_ALIGN_DETAIL_ALIGN_UP_HPP
12 #include <boost/align/detail/is_alignment.hpp>
13 #include <boost/align/align_up_forward.hpp>
14 #include <boost/assert.hpp>
19 inline void* align_up(void* ptr, std::size_t alignment) BOOST_NOEXCEPT
21 BOOST_ASSERT(detail::is_alignment(alignment));
22 return (void*)(align_up((std::size_t)ptr, alignment));