![]() |
DAW JSON Link
|
#include <daw_json_allocator_wrapper.h>
Classes | |
struct | allocator_type_as_rebind |
Public Types | |
using | allocator_type = std::remove_reference_t< Alloc > |
template<typename T > | |
using | allocator_type_as = std::conditional_t< has_rebind_v< allocator_type, T >, allocator_type_as_rebind< allocator_type, T >, allocator_type > |
template<typename A , typename T > | |
using | has_allocator_type_as_rebind = typename std::allocator_traits< A >::template rebind_traits< T >::type |
Public Member Functions | |
AllocatorWrapper (allocator_type &alloc) noexcept | |
template<typename T > | |
auto | get_allocator_for () const |
Static Public Attributes | |
static constexpr bool | has_allocator = true |
template<typename A , typename T > | |
static constexpr bool | has_rebind_v |
using DAW_JSON_NS::json_details::AllocatorWrapper< Alloc >::allocator_type = std::remove_reference_t<Alloc> |
using DAW_JSON_NS::json_details::AllocatorWrapper< Alloc >::allocator_type_as = std::conditional_t<has_rebind_v<allocator_type, T>, allocator_type_as_rebind<allocator_type, T>, allocator_type> |
using DAW_JSON_NS::json_details::AllocatorWrapper< Alloc >::has_allocator_type_as_rebind = typename std::allocator_traits<A>::template rebind_traits<T>::type |
|
inlinenoexcept |
|
inline |
|
staticconstexpr |
|
inlinestaticconstexpr |