Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template basic_managed_external_buffer

boost::interprocess::basic_managed_external_buffer

Synopsis

// In header: <boost/interprocess/managed_external_buffer.hpp>

template<typename CharType, typename AllocationAlgorithm, 
          IndexType> 
class basic_managed_external_buffer {
public:
  // types
  typedef  ;

  // public member functions
  () ;
  (create_only_t, , );
  (open_only_t, , );
  (basic_managed_external_buffer &&) ;
  basic_managed_external_buffer & 
  (basic_managed_external_buffer &&) ;
   ();
   (basic_managed_external_buffer &) ;
};

Description

A basic user memory named object creation class. Inherits all basic functionality from basic_managed_memory_impl<CharType, AllocationAlgorithm, IndexType>*<zwj></zwj>/

basic_managed_external_buffer public member functions

  1. () ;

    Default constructor. Does nothing. Useful in combination with move semantics

  2. (create_only_t,  addr,  size);

    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.

  3. (open_only_t,  addr,  size);

    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.

  4. (basic_managed_external_buffer && moved) ;
    Moves the ownership of "moved"'s managed memory to *this. Does not throw.
  5. basic_managed_external_buffer & 
    (basic_managed_external_buffer && moved) ;
    Moves the ownership of "moved"'s managed memory to *this. Does not throw.
  6.  ( extra_bytes);

    Tries to resize internal heap memory so that we have room for more objects.

  7.  (basic_managed_external_buffer & other) ;

    Swaps the ownership of the managed heap memories managed by *this and other. Never throws.


PrevUpHomeNext