siplasplas
Classes | Public Types | Public Member Functions | Friends | List of all members
cpp::STLAllocator< T, Allocator > Struct Template Reference
Inheritance diagram for cpp::STLAllocator< T, Allocator >:

Classes

struct  rebind
 

Public Types

using value_type = T
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using propagate_on_container_move_assignment = std::true_type
 

Public Member Functions

 STLAllocator (const STLAllocator &)=default
 
 STLAllocator (STLAllocator &&)=default
 
 STLAllocator (char *begin, char *end, std::size_t fence=0, unsigned char cannary=0xff)
 
 STLAllocator (Allocator &&allocator, std::size_t fence=0, unsigned char cannary=0xff)
 
 STLAllocator (const Allocator &allocator, std::size_t fence=0, unsigned char cannary=0xff)
 
template<typename U >
 STLAllocator (const STLAllocator< U, Allocator > &alloc)
 
template<typename U >
 STLAllocator (STLAllocator< U, Allocator > &&alloc)
 
const Allocatorraw_allocator () const
 
Allocatorraw_allocator ()
 
pointer allocate (std::size_t count)
 
void deallocate (pointer ptr, std::size_t count)
 
template<typename... Args>
void construct (pointer ptr, Args &&... args)
 
void destroy (pointer ptr)
 
std::string dump () const
 

Friends

bool operator== (const STLAllocator &lhs, const STLAllocator &rhs)
 
bool operator!= (const STLAllocator &lhs, const STLAllocator &rhs)
 

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