Implemented proposed resolution for LWG 3120

This commit is contained in:
Ion Gaztañaga
2018-06-18 00:29:22 +02:00
parent 62a8b6666e
commit 920e009d71
4 changed files with 49 additions and 17 deletions

View File

@@ -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;