sparrow 0.9.0
|
#include <allocator.hpp>
Public Types | |
using | value_type = T |
template<allocator A> | |
using | allocator_value_type = typename std::allocator_traits<std::decay_t<A>>::value_type |
Public Member Functions | |
any_allocator () | |
any_allocator (const any_allocator &rhs) | |
any_allocator (any_allocator &&) noexcept | |
any_allocator & | operator= (const any_allocator &rhs)=delete |
any_allocator & | operator= (any_allocator &&rhs)=delete |
template<class A> requires ( not std::same_as<std::remove_cvref_t<A>, any_allocator> and allocator<A> and std::same_as<allocator_value_type<A>, T> ) | |
any_allocator (A &&alloc) | |
T * | allocate (std::size_t n) |
void | deallocate (T *p, std::size_t n) |
any_allocator | select_on_container_copy_construction () const |
bool | equal (const any_allocator &rhs) const |
Definition at line 64 of file allocator.hpp.
using sparrow::any_allocator< T >::allocator_value_type = typename std::allocator_traits<std::decay_t<A>>::value_type |
Definition at line 71 of file allocator.hpp.
using sparrow::any_allocator< T >::value_type = T |
Definition at line 68 of file allocator.hpp.
sparrow::any_allocator< T >::any_allocator | ( | ) |
sparrow::any_allocator< T >::any_allocator | ( | const any_allocator< T > & | rhs | ) |
|
noexcept |
|
inline |
|
nodiscard |
Definition at line 231 of file allocator.hpp.
void sparrow::any_allocator< T >::deallocate | ( | T * | p, |
std::size_t | n ) |
Definition at line 253 of file allocator.hpp.
|
nodiscard |
Definition at line 278 of file allocator.hpp.
|
delete |
|
delete |
|
nodiscard |