TPIE

2362a60
tpie::allocator< T > Class Template Reference

A allocator object usable in STL containers, using the TPIE memory manager. More...

#include <tpie/memory.h>

Classes

struct  rebind
 

Public Types

typedef a_t::size_type size_type
 
typedef a_t::difference_type difference_type
 
typedef a_t::pointer pointer
 
typedef a_t::const_pointer const_pointer
 
typedef a_t::reference reference
 
typedef a_t::const_reference const_reference
 
typedef a_t::value_type value_type
 
typedef std::true_type propagate_on_container_copy_assignment
 
typedef std::true_type propagate_on_container_move_assignment
 
typedef std::true_type propagate_on_container_swap
 

Public Member Functions

 allocator (memory_bucket_ref bucket) noexcept
 
 allocator (const allocator &o) noexcept
 
template<typename T2 >
 allocator (const allocator< T2 > &o) noexcept
 
T * allocate (size_t size, const void *hint=0)
 
void deallocate (T *p, size_t n)
 
size_t max_size () const noexcept
 
template<typename U , typename... TT>
void construct (U *p, TT &&...x)
 
template<typename U >
void destroy (U *p)
 
pointer address (reference x) const noexcept
 
const_pointer address (const_reference x) const noexcept
 

Public Attributes

memory_bucket_ref bucket
 

Friends

template<typename U >
class allocator
 
bool operator== (const allocator &l, const allocator &r) noexcept
 
bool operator!= (const allocator &l, const allocator &r) noexcept
 

Detailed Description

template<class T>
class tpie::allocator< T >

A allocator object usable in STL containers, using the TPIE memory manager.

Template Parameters
TThe type of the elements that can be allocated.

Definition at line 390 of file memory.h.


The documentation for this class was generated from the following file: