A Chusov::Memory::allocator class template specialization for pointers of void* type.
More...
#include <chsvmemex.h>
Classes | |
| struct | rebind |
Public Types | |
| typedef void | value_type |
A type of an element pointed to by void* pointers is unknown. | |
| typedef void * | pointer |
| A pointer type. | |
| typedef const void * | const_pointer |
| A constant pointer type. | |
| typedef std::size_t | size_type |
| typedef std::ptrdiff_t | difference_type |
| typedef std::true_type | propagate_on_container_copy_assignment |
| Allows copying. | |
| typedef std::true_type | propagate_on_container_move_assignment |
| Allows movement. | |
| typedef std::true_type | propagate_on_container_swap_assignment |
| Allows swapping with another allocator instance. | |
Public Member Functions | |
| allocator ()=default | |
| A compiler-generated default constructor. More... | |
| allocator (const allocator &refRight)=default | |
| Compiler-generated copy constructor. More... | |
| template<class U > | |
| allocator (const allocator< U > &refRight) noexcept | |
A copy constructor called over the allocator object of type, that is another instantiation of the Chusov::Memory::allocator template. More... | |
| pointer | allocate (size_type n, const_pointer=0) |
| Allocates an uninitialized memory to hold the specified number bytes. More... | |
| void | deallocate (pointer p, size_type) |
| Deallocates a pointed memory. More... | |
| size_type | max_size () const noexcept |
Returns a maximum number of bytes, that can be allocated theoretically, that is SIZE_MAX. | |
| template<class U , class ... arg_t> | |
| void | construct (U *p, arg_t &&...args) |
| template<class U > | |
| void | destroy (U *p) |
| Destroys an object, pointed to by the parameter. The method does not deallocate the occupied memory, as it is performed by the deallocate method. More... | |
A Chusov::Memory::allocator class template specialization for pointers of void* type.