Standard C++ Library Reference ISO/IEC (VERSION3)
allocator::max_size
size_type max_size() const;
The member function returns the length of the longest sequence of elements of type Ty that an
object of class allocator might be able to allocate.
allocator::operator=
template<class Other>
allocator& operator=(const allocator<Other>& right);
The template assignment operator does nothing. In general, however, an allocator object
assigned to another allocator object should compare equal to it (and hence permit intermixing of
object allocation and freeing between the two allocator objects).
allocator::pointer
typedef Ty *pointer;
The pointer type describes an object ptr that can designate, via the expression *ptr, any object
that an object of template class allocator can allocate.
allocator::rebind
template<class Other>
struct rebind {
typedef allocator<Other> other;
};
The member template class defines the type other. Its sole purpose is to provide the type name
allocator<Other> given the type name allocator<Ty>.
For example, given an allocator object al of type A, you can allocate an object of type Other
with the expression:
A::rebind<Other>::other(al).allocate(1, (Other *)0)
Or, you can simply name its pointer type by writing the type:
A::rebind<Other>::other::pointer
allocator::reference
typedef Ty& reference;
The reference type describes an object that can designate any object that an object of template
class allocator can allocate.