]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/container/pmr/monotonic_buffer_resource.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / container / pmr / monotonic_buffer_resource.hpp
index dfffe87dc38045ef7794bebd6372548b6ee4959f..38b100a420dd9b81101c6591cd998edb18a9a21f 100644 (file)
@@ -18,6 +18,7 @@
 #include <boost/container/detail/config_begin.hpp>
 #include <boost/container/detail/workaround.hpp>
 #include <boost/container/detail/auto_link.hpp>
+#include <boost/container/container_fwd.hpp>
 #include <boost/container/pmr/memory_resource.hpp>
 #include <boost/container/detail/block_slist.hpp>
 
@@ -51,9 +52,11 @@ class BOOST_CONTAINER_DECL monotonic_buffer_resource
    : public memory_resource
 {
    block_slist       m_memory_blocks;
-   void            m_current_buffer;
+   void *            m_current_buffer;
    std::size_t       m_current_buffer_size;
    std::size_t       m_next_buffer_size;
+   void * const      m_initial_buffer;
+   std::size_t const m_initial_buffer_size;
 
    /// @cond
    void increase_next_buffer();
@@ -131,7 +134,7 @@ class BOOST_CONTAINER_DECL monotonic_buffer_resource
    std::size_t remaining_storage(std::size_t alignment = 1u) const BOOST_NOEXCEPT;
 
    //! <b>Returns</b>:
-   //!   The number of bytes of storage available for the specified alignment.
+   //!   The address pointing to the start of the current free storage.
    //!
    //! <b>Note</b>: Non-standard extension.
    const void *current_buffer() const BOOST_NOEXCEPT;