7 #ifndef __MYGUI_ALLOCATOR_H__
8 #define __MYGUI_ALLOCATOR_H__
48 inline const_pointer
address(const_reference r)
54 inline pointer
allocate(size_type cnt,
typename std::allocator<void>::const_pointer = 0)
56 return reinterpret_cast<pointer
>(::operator
new (cnt *
sizeof (T)));
60 ::operator
delete (p);
66 return (std::numeric_limits<size_type>::max)() /
sizeof(T);
91 #endif // __MYGUI_ALLOCATOR_H__
bool operator==(Allocator const &)
const value_type & const_reference
std::ptrdiff_t difference_type
bool operator!=(Allocator const &a)
Allocator(Allocator< U > const &)
size_type max_size() const
void deallocate(pointer p, size_type)
const_pointer address(const_reference r)
const value_type * const_pointer
pointer address(reference r)
pointer allocate(size_type cnt, typename std::allocator< void >::const_pointer=0)
void construct(pointer p, const T &t)