tlx
Loading...
Searching...
No Matches
AllocatorBase< Type > Class Template Reference

#include <allocator_base.hpp>

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

Public Types

using value_type
 
using pointer
 
using const_pointer
 
using reference
 
using const_reference
 
using size_type
 
using difference_type
 
using is_always_equal
 C++11 type flag.
 
using propagate_on_container_move_assignment
 C++11 type flag.
 

Public Member Functions

pointer address (reference x) const noexcept
 Returns the address of x.
 
const_pointer address (const_reference x) const noexcept
 Returns the address of x.
 
size_type max_size () const noexcept
 Maximum size possible to allocate.
 
void construct (pointer p, const_reference value)
 Constructs an element object on the location pointed by p.
 
void destroy (pointer p) const noexcept
 Destroys in-place the object pointed by p.
 

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

◆ const_pointer

template<typename Type>
using const_pointer

Definition at line 28 of file allocator_base.hpp.

◆ const_reference

template<typename Type>
using const_reference

Definition at line 30 of file allocator_base.hpp.

◆ difference_type

template<typename Type>
using difference_type

Definition at line 32 of file allocator_base.hpp.

◆ is_always_equal

template<typename Type>
using is_always_equal

C++11 type flag.

Definition at line 35 of file allocator_base.hpp.

◆ pointer

template<typename Type>
using pointer

Definition at line 27 of file allocator_base.hpp.

◆ propagate_on_container_move_assignment

template<typename Type>
using propagate_on_container_move_assignment

C++11 type flag.

Definition at line 37 of file allocator_base.hpp.

◆ reference

template<typename Type>
using reference

Definition at line 29 of file allocator_base.hpp.

◆ size_type

template<typename Type>
using size_type

Definition at line 31 of file allocator_base.hpp.

◆ value_type

template<typename Type>
using value_type

Definition at line 26 of file allocator_base.hpp.

Member Function Documentation

◆ address() [1/2]

template<typename Type>
const_pointer address ( const_reference x) const
inlinenoexcept

Returns the address of x.

Definition at line 45 of file allocator_base.hpp.

◆ address() [2/2]

template<typename Type>
pointer address ( reference x) const
inlinenoexcept

Returns the address of x.

Definition at line 40 of file allocator_base.hpp.

◆ construct()

template<typename Type>
void construct ( pointer p,
const_reference value )
inline

Constructs an element object on the location pointed by p.

Definition at line 69 of file allocator_base.hpp.

◆ destroy()

template<typename Type>
void destroy ( pointer p) const
inlinenoexcept

Destroys in-place the object pointed by p.

Definition at line 79 of file allocator_base.hpp.

◆ max_size()

template<typename Type>
size_type max_size ( ) const
inlinenoexcept

Maximum size possible to allocate.

Definition at line 50 of file allocator_base.hpp.

Member Data Documentation

◆ debug

template<typename Type>
bool debug
staticconstexprprivate

Definition at line 23 of file allocator_base.hpp.


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