tlx
AllocatorBase< Type > Class Template Reference

#include <allocator_base.hpp>

Inheritance diagram for AllocatorBase< Type >:
StackAllocator< Type, Size >

Public Types

using value_type = Type
 
using pointer = Type *
 
using const_pointer = const Type *
 
using reference = Type &
 
using const_reference = const Type &
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using is_always_equal = std::true_type
 C++11 type flag. More...
 
using propagate_on_container_move_assignment = std::true_type
 C++11 type flag. More...
 

Public Member Functions

pointer address (reference x) const noexcept
 Returns the address of x. More...
 
const_pointer address (const_reference x) const noexcept
 Returns the address of x. More...
 
size_type max_size () const noexcept
 Maximum size possible to allocate. More...
 
void construct (pointer p, const_reference value)
 Constructs an element object on the location pointed by p. More...
 
void destroy (pointer p) const noexcept
 Destroys in-place the object pointed by p. More...
 
template<typename SubType , typename... Args>
void construct (SubType *p, Args &&...args)
 Constructs an element object on the location pointed by p. More...
 
template<typename SubType >
void destroy (SubType *p) const noexcept
 Destroys in-place the object pointed by p. More...
 

Static Private Attributes

static constexpr bool debug
 

Detailed Description

template<typename Type>
class tlx::AllocatorBase< Type >

Definition at line 21 of file allocator_base.hpp.

Member Typedef Documentation

using const_pointer = const Type *

Definition at line 28 of file allocator_base.hpp.

using const_reference = const Type&

Definition at line 30 of file allocator_base.hpp.

using difference_type = std::ptrdiff_t

Definition at line 32 of file allocator_base.hpp.

using is_always_equal = std::true_type

C++11 type flag.

Definition at line 35 of file allocator_base.hpp.

using pointer = Type *

Definition at line 27 of file allocator_base.hpp.

C++11 type flag.

Definition at line 37 of file allocator_base.hpp.

using reference = Type&

Definition at line 29 of file allocator_base.hpp.

using size_type = std::size_t

Definition at line 31 of file allocator_base.hpp.

using value_type = Type

Definition at line 26 of file allocator_base.hpp.

Member Function Documentation

pointer address ( reference  x) const
inlinenoexcept

Returns the address of x.

Definition at line 40 of file allocator_base.hpp.

const_pointer address ( const_reference  x) const
inlinenoexcept

Returns the address of x.

Definition at line 45 of file allocator_base.hpp.

void construct ( pointer  p,
const_reference  value 
)
inline

Constructs an element object on the location pointed by p.

Definition at line 55 of file allocator_base.hpp.

void construct ( SubType *  p,
Args &&...  args 
)
inline

Constructs an element object on the location pointed by p.

Definition at line 74 of file allocator_base.hpp.

void destroy ( pointer  p) const
inlinenoexcept

Destroys in-place the object pointed by p.

Definition at line 65 of file allocator_base.hpp.

void destroy ( SubType *  p) const
inlinenoexcept

Destroys in-place the object pointed by p.

Definition at line 80 of file allocator_base.hpp.

size_type max_size ( ) const
inlinenoexcept

Maximum size possible to allocate.

Definition at line 50 of file allocator_base.hpp.

Member Data Documentation

constexpr bool debug
staticprivate

Definition at line 23 of file allocator_base.hpp.


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