ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
StdContainerAllocatorBase< T, TAllocator > Struct Template Reference

Description:

template<typename T, typename TAllocator>
struct alib::lang::detail::StdContainerAllocatorBase< T, TAllocator >

Base struct for types StdContainerAllocator and StdContainerAllocatorRecycling containing entities to satisfy requirements for being a std::allocator.

Template Parameters
TThe type of objects to be allocated.
TAllocatorThe allocator type, as prototyped with Allocator.

Definition at line 26 of file stdcontainerallocator.hpp.

#include <stdcontainerallocator.hpp>

Inheritance diagram for StdContainerAllocatorBase< T, TAllocator >:
[legend]

Public Type Index:

using AllocatorType = TAllocator
 The allocator type that TAllocator specifies.
 
using const_reference = const T&
 Type definition as required by C++ library standards.
 
using difference_type = ptrdiff_t
 Type definition as required by C++ library standards.
 
using is_always_equal = std::false_type
 Type definition as required by C++ library standards.
 
using reference = T&
 Type definition as required by C++ library standards.
 
using size_type = size_t
 Type definition as required by C++ library standards.
 
using value_type = T
 Type definition as required by C++ library standards.
 

Public Method Index:

size_t max_size () const noexcept
 

Type Definition Details:

◆ AllocatorType

template<typename T , typename TAllocator >
using AllocatorType = TAllocator

The allocator type that TAllocator specifies.

Definition at line 40 of file stdcontainerallocator.hpp.

◆ const_reference

template<typename T , typename TAllocator >
using const_reference = const T&

Type definition as required by C++ library standards.

Definition at line 36 of file stdcontainerallocator.hpp.

◆ difference_type

template<typename T , typename TAllocator >
using difference_type = ptrdiff_t

Type definition as required by C++ library standards.

Definition at line 32 of file stdcontainerallocator.hpp.

◆ is_always_equal

template<typename T , typename TAllocator >
using is_always_equal = std::false_type

Type definition as required by C++ library standards.

Definition at line 34 of file stdcontainerallocator.hpp.

◆ reference

template<typename T , typename TAllocator >
using reference = T&

Type definition as required by C++ library standards.

Definition at line 35 of file stdcontainerallocator.hpp.

◆ size_type

template<typename T , typename TAllocator >
using size_type = size_t

Type definition as required by C++ library standards.

Definition at line 31 of file stdcontainerallocator.hpp.

◆ value_type

template<typename T , typename TAllocator >
using value_type = T

Type definition as required by C++ library standards.

Definition at line 33 of file stdcontainerallocator.hpp.

Method Details:

◆ max_size()

template<typename T , typename TAllocator >
size_t max_size ( ) const
inlinenoexcept

The possible allocation size. Note: Available only if ALIB_CPP_STANDARD == 17, as it was deprecated afterwards..

Returns
Returns the largest supported allocation size.

Definition at line 49 of file stdcontainerallocator.hpp.


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