Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
Allocator< T >

#include "loft.hh"

Inheritance diagram for Allocator< T >:
[legend]

Public Types

usingvalue_type = T

Public Member Functions

constexpr T *allocate (std::size_t n) const
Allocator () noexcept=default
template<typename U >
Allocator (const Allocator< U > &other) noexcept
constexpr voiddeallocate (T *p, size_t n) const noexcept
booloperator!= (const Allocator< T > &o) const noexcept
booloperator== (const Allocator< T > &o) const noexcept

Static Public Attributes

static constexpr boolallows_read_after_free

Detailed Description

template<typename T>
class Ase::Loft::Allocator< T >

Allocator for STL containers.

Member Typedef Documentation

value_type

template<typename T >
using value_type = T

Constructor & Destructor Documentation

Allocator() [1/2]

template<typename T >
Allocator ( )
defaultnoexcept

Allocator() [2/2]

template<typename T >
template<typename U >
Allocator ( const Allocator< U > & other)
noexcept

Member Function Documentation

operator==()

template<typename T >
bool operator== ( const Allocator< T > & o) const
noexcept

operator!=()

template<typename T >
bool operator!= ( const Allocator< T > & o) const
noexcept

deallocate()

template<typename T >
constexpr void deallocate ( T * p,
size_t n
) const
constexprnoexcept

allocate()

template<typename T >
constexpr T * allocate ( std::size_t n) const
constexpr

Member Data Documentation

allows_read_after_free

template<typename T >
constexpr bool allows_read_after_free
staticconstexpr