43 pointer
allocate(size_type n,
const void * = 0) {
44 T *t = (T *) malloc(n *
sizeof(T));
54 pointer
address(reference x)
const {
return &x; }
56 const_pointer
address(const_reference x)
const {
return &x; }
60 void construct(pointer p,
const T &val) {
new((T *) p) T(val); }
64 size_type
max_size()
const {
return size_t(-1); }
const T & const_reference
SimpleAllocator(const SimpleAllocator &)
const_pointer address(const_reference x) const
SimpleAllocator & operator=(const SimpleAllocator< U > &)
SimpleAllocator< U > other
void deallocate(void *p, size_type)
SimpleAllocator< T > & operator=(const SimpleAllocator &)
pointer allocate(size_type n, const void *=0)
SimpleAllocator(const SimpleAllocator< U > &)
size_type max_size() const
pointer address(reference x) const
void construct(pointer p, const T &val)
ptrdiff_t difference_type