]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/interprocess/managed_external_buffer.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / interprocess / managed_external_buffer.hpp
index 1e8f1cca49452c1e3e00e58cdbc1307c104ffb97..0cf2d4d2b499081de6fd85bf3d298b7e56589c61 100644 (file)
@@ -60,10 +60,13 @@ class basic_managed_external_buffer
 
    //!Default constructor. Does nothing.
    //!Useful in combination with move semantics
-   basic_managed_external_buffer()
+   basic_managed_external_buffer() BOOST_NOEXCEPT
    {}
 
    //!Creates and places the segment manager. This can throw
+   //!The external memory supplied by the user shall be aligned to the maximum value between 
+   //!`alignof(std::max_align_t)` and the strictest alignment of any over-aligned type to be built
+   //!inside that memory.
    basic_managed_external_buffer
       (create_only_t, void *addr, size_type size)
    {
@@ -75,6 +78,9 @@ class basic_managed_external_buffer
    }
 
    //!Creates and places the segment manager. This can throw
+   //!The external memory supplied by the user shall be aligned to the maximum value between 
+   //!`alignof(std::max_align_t)` and the strictest alignment of any over-aligned type to be built
+   //!inside that memory.
    basic_managed_external_buffer
       (open_only_t, void *addr, size_type size)
    {
@@ -86,13 +92,13 @@ class basic_managed_external_buffer
    }
 
    //!Moves the ownership of "moved"'s managed memory to *this. Does not throw
-   basic_managed_external_buffer(BOOST_RV_REF(basic_managed_external_buffer) moved)
+   basic_managed_external_buffer(BOOST_RV_REF(basic_managed_external_buffer) moved) BOOST_NOEXCEPT
    {
       this->swap(moved);
    }
 
    //!Moves the ownership of "moved"'s managed memory to *this. Does not throw
-   basic_managed_external_buffer &operator=(BOOST_RV_REF(basic_managed_external_buffer) moved)
+   basic_managed_external_buffer &operator=(BOOST_RV_REF(basic_managed_external_buffer) moved) BOOST_NOEXCEPT
    {
       basic_managed_external_buffer tmp(boost::move(moved));
       this->swap(tmp);
@@ -104,7 +110,7 @@ class basic_managed_external_buffer
 
    //!Swaps the ownership of the managed heap memories managed by *this and other.
    //!Never throws.
-   void swap(basic_managed_external_buffer &other)
+   void swap(basic_managed_external_buffer &other) BOOST_NOEXCEPT
    {  base_t::swap(other); }
 };