|
| standard_alloc_policy ()=default |
| Defaulted constructor.
|
|
| ~standard_alloc_policy ()=default |
| Defaulted destructor.
|
|
| standard_alloc_policy (standard_alloc_policy const &) |
| Explicit copy constructor.
|
|
template<typename U , typename = typename std::enable_if< std::is_convertible<U *, T *>::value>::type> |
| standard_alloc_policy (standard_alloc_policy< U > const &) |
| Type converting constructor.
|
|
pointer | allocate (size_type cnt, const_void_pointer=0) |
| Allocate storage for cnt objects of type T. More...
|
|
void | deallocate (pointer p, size_type=0) |
| Deallocates storage pointed to p, which must be a value returned by a previous call to allocate that has not been invalidated by an intervening call to deallocate. More...
|
|
size_type | max_size () const |
| The largest value that can meaningfully be passed to allocate(). More...
|
|
template<typename T>
class pmem::obj::standard_alloc_policy< T >
The allocation policy template for a given type.
Can be specialized for a given type. Designed to be used with C++ allocators. Can be specialized if necessary.