proxygen
|
#include <Memory.h>
Public Types | |
using | value_type = T |
using | propagate_on_container_copy_assignment = std::true_type |
using | propagate_on_container_move_assignment = std::true_type |
using | propagate_on_container_swap = std::true_type |
Public Member Functions | |
CxxAllocatorAdaptor (Inner &ref) | |
template<typename U > | |
CxxAllocatorAdaptor (CxxAllocatorAdaptor< U, Inner > const &other) | |
T * | allocate (std::size_t n) |
void | deallocate (T *p, std::size_t n) |
Private Types | |
using | Self = CxxAllocatorAdaptor< T, Inner > |
Private Attributes | |
std::reference_wrapper< Inner > | ref_ |
Friends | |
template<typename U , typename UAlloc > | |
class | CxxAllocatorAdaptor |
bool | operator== (Self const &a, Self const &b) noexcept |
bool | operator!= (Self const &a, Self const &b) noexcept |
A type conforming to C++ concept Allocator, delegating operations to an unowned Inner which has this required interface:
void* allocate(std::size_t) void deallocate(void*, std::size_t)
Note that Inner is not a C++ Allocator.
using folly::CxxAllocatorAdaptor< T, Inner >::propagate_on_container_copy_assignment = std::true_type |
using folly::CxxAllocatorAdaptor< T, Inner >::propagate_on_container_move_assignment = std::true_type |
using folly::CxxAllocatorAdaptor< T, Inner >::propagate_on_container_swap = std::true_type |
|
private |
using folly::CxxAllocatorAdaptor< T, Inner >::value_type = T |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
friend |
|
private |