]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/align/include/boost/align/detail/align_up.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / align / include / boost / align / detail / align_up.hpp
CommitLineData
7c673cae
FG
1/*
2(c) 2015 Glen Joseph Fernandes
3<glenjofe -at- gmail.com>
4
5Distributed under the Boost Software
6License, Version 1.0.
7http://boost.org/LICENSE_1_0.txt
8*/
9#ifndef BOOST_ALIGN_DETAIL_ALIGN_UP_HPP
10#define BOOST_ALIGN_DETAIL_ALIGN_UP_HPP
11
12#include <boost/align/detail/is_alignment.hpp>
13#include <boost/align/align_up_forward.hpp>
14#include <boost/assert.hpp>
15
16namespace boost {
17namespace alignment {
18
19inline void* align_up(void* ptr, std::size_t alignment) BOOST_NOEXCEPT
20{
21 BOOST_ASSERT(detail::is_alignment(alignment));
22 return (void*)(align_up((std::size_t)ptr, alignment));
23}
24
25} /* .alignment */
26} /* .boost */
27
28#endif