libER 0.1.4.2
ELDEN RING API library
|
The main libER stand-in for ER allocator proxies. More...
#include <from_allocator.hpp>
Public Types | |
using | value_type = T |
The allocated value type. | |
using | size_type = size_t |
Memory size type. | |
using | difference_type = ptrdiff_t |
Memory difference type. | |
using | propagate_on_container_move_assignment = std::true_type |
This allocator is move assigned along with the contents. | |
using | is_always_equal = std::false_type |
This allocator may proxy different stateful allocators. | |
Public Member Functions | |
allocator () noexcept | |
Default allocator constructor. | |
allocator (const allocator &other) noexcept | |
Allocator copy constructor. | |
template<typename U > | |
allocator (const allocator< U > &other) noexcept | |
Allocator copy constructor. | |
allocator (base_type *allocator_base) noexcept | |
Wrap an existing DLKR::DLAllocator. | |
T * | allocate (size_type n) |
Allocate n instances of uninitialized memory for T. | |
void | deallocate (T *p, size_type n=0) |
Deallocate previously allocated memory. | |
Friends | |
template<typename T1 , typename T2 > | |
bool | operator== (const allocator< T1 > &lhs, const allocator< T2 > &rhs) noexcept |
Allocator equality comparison. | |
The main libER stand-in for ER allocator proxies.
Uses the DLKR::DLAllocator interface and fulfils allocator completeness requirements.
T | allocated type |
using from::allocator< T >::is_always_equal = std::false_type |
This allocator may proxy different stateful allocators.
Equality checks via operator == are required on assignment.
|
inlinenoexcept |
Allocator copy constructor.
Required by allocator completeness requirements.
other |
|
inlinenoexcept |
Allocator copy constructor.
Required by allocator completeness requirements.
U | other allocated type |
other |
|
inlineexplicitnoexcept |
Wrap an existing DLKR::DLAllocator.
allocator | the allocator to use |
|
inline |
Allocate n instances of uninitialized memory for T.
n | count of instances to allocate |
|
inline |
Deallocate previously allocated memory.
p | pointer to the memory to deallocate |
n | is ignored by DLKR::DLAllocator and can be zero |