|
fennec
|
Helper structure for obtaining traits of an allocator class. More...
#include <allocator.h>
| Alloc | The allocator class to analyze |
Public Types | |
| using | alloc_t = Alloc |
| Alias for the allocator type. | |
| using | value_t = typename Alloc::value_t |
| Alias for the value type of the allocator. | |
| using | pointer_t = detect_t< value_t *, _pointer, Alloc > |
Alias for a pointer to the value type. Will use Alloc::pointer_t if present. | |
| using | const_pointer_t = detect_t< const value_t *, _const_pointer, Alloc > |
Alias for a const pointer to the value type. Will use Alloc::const_pointer_t if present. | |
| using | void_pointer_t = detect_t< void *, _void_pointer, Alloc > |
Alias for a pointer to void. Will use Alloc::void_pointer_t if present. | |
| using | const_void_pointer_t = detect_t< const void *, _void_const_pointer, Alloc > |
Alias for a const pointer to void. Will use Alloc::const_void_pointer_t if present. | |
| using | diff_t = typename _diff< Alloc, pointer_t >::type |
Alias for differences between pointers. Will use Alloc::diff_t if present. | |
| using | size_t = typename _size< Alloc, pointer_t >::type |
Alias for the size of allocations. Will use Alloc::size_t if present. | |
| using | is_always_equal = detect_t< false_type, _is_always_equal, Alloc > |
| Checks if this allocator type is always equal to another allocator of similar type. | |
| template<typename TypeT > | |
| using | rebind = typename _rebind< Alloc, TypeT >::type |
Rebinds the allocator type to produce an element type of type TypeT | |