Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
alb::stl_allocator< T, Allocator > Class Template Reference

Classes

struct  rebind
 

Public Types

using size_type = size_t
 
using difference_type = ptrdiff_t
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using value_type = T
 

Public Member Functions

 stl_allocator (const stl_allocator &)
 
template<typename U >
 stl_allocator (const stl_allocator< U, Allocator > &)
 
pointer address (reference r) const
 
const_pointer address (const_reference r) const
 
T * allocate (std::size_t n, const void *=nullptr)
 
void deallocate (T *ptr, std::size_t n)
 
size_t max_size () const
 
void construct (pointer ptr)
 
template<class U >
void construct (pointer ptr, const U &val)
 
void construct (pointer ptr, const T &val)
 
void destroy (pointer p)
 

Detailed Description

template<typename T, class Allocator>
class alb::stl_allocator< T, Allocator >

Definition at line 18 of file stl_allocator.hpp.


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