...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::interprocess::basic_managed_external_buffer
template<typename CharType, typename AllocationAlgorithm, template< class IndexConfig > class IndexType> class basic_managed_external_buffer { public: // construct/copy/destruct basic_managed_external_buffer(create_only_t, void *, std::size_t); basic_managed_external_buffer(open_only_t, void *, std::size_t); basic_managed_external_buffer(unspecified); basic_managed_external_buffer& operator=(unspecified); // public member functions void grow(std::size_t) ; void swap(basic_managed_external_buffer &) ; };
A basic user memory named object creation class. Inherits all basic functionality from basic_managed_memory_impl<CharType, AllocationAlgorithm, IndexType>
basic_managed_external_buffer
public
construct/copy/destructbasic_managed_external_buffer(create_only_t, void * addr, std::size_t size);
Creates and places the segment manager. This can throw
basic_managed_external_buffer(open_only_t, void * addr, std::size_t size);
basic_managed_external_buffer(unspecified moved);
basic_managed_external_buffer& operator=(unspecified moved);
basic_managed_external_buffer
public member functionsvoid grow(std::size_t extra_bytes) ;
void swap(basic_managed_external_buffer & other) ;
Swaps the ownership of the managed heap memories managed by *this and other. Never throws.