An instance A of the data type allocator<T> is a memory allocator according to the C++standard.
Local types are size_type, difference_type, value_type, pointer, reference, const_pointer, and const_reference.
| |
| |
allows the construction of a derived allocator: allocator<T>::template rebind<T1>::other is the type allocator<T1>.
|
| |
introduces a variable A of type allocator<T>.
|
|
| |||
returns a pointer to a newly allocated memory range of size n * sizeof(T). | ||||
|
| |||
deallocates a memory range of n * sizeof(T) starting
at p.
| ||||
|
| returns &r. | ||
|
| returns &r. | ||
|
| |||
copies the object referenced by r to *p. (Technically this is achieved by an inplace new new( (void*)p ) T(r)). | ||||
|
| destroys the object referenced via p by calling p->~T(). | ||
|
| the largest value n for which the call allocate(n,0) might succeed. |