mirror of
https://github.com/boostorg/container.git
synced 2026-02-26 04:32:21 +00:00
Implemented proposed resolution for LWG 3120
This commit is contained in:
@@ -51,9 +51,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 +133,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;
|
||||
|
||||
Reference in New Issue
Block a user