![]() |
Home | Libraries | People | FAQ | More |
boost::container::new_allocator<void> — Specialization of new_allocator for void types.
// In header: <boost/container/new_allocator.hpp> class new_allocator<> { public: // types typedef void ; typedef void * ; typedef const void * ; typedef implementation_defined ; // A integral constant of type bool with value true. typedef implementation_defined ; // A integral constant of type bool with value true. // member classes/structs/unions struct rebind { // types typedef new_allocator< T2 > ; }; // construct/copy/destruct () ; (const new_allocator &) ; template<typename T2> (const new_allocator< T2 > &) ; new_allocator & (const new_allocator &) ; // friend functions void (new_allocator &, new_allocator &) ; bool (const new_allocator &, const new_allocator &) ; bool (const new_allocator &, const new_allocator &) ; };
new_allocator
public
construct/copy/destruct() ;
Default constructor Never throws
(const new_allocator &) ;
Constructor from other new_allocator
. Never throws
template<typename T2> (const new_allocator< T2 > &) ;
Constructor from related new_allocator
. Never throws
new_allocator & (const new_allocator &) ;
Copy assignment operator from other new_allocator
. Never throws
new_allocator
friend functionsvoid (new_allocator &, new_allocator &) ;
Swaps two allocators, does nothing because this new_allocator
is stateless
bool (const new_allocator &, const new_allocator &) ;
An new_allocator
always compares to true, as memory allocated with one instance can be deallocated by another instance
bool (const new_allocator &, const new_allocator &) ;
An new_allocator
always compares to false, as memory allocated with one instance can be deallocated by another instance