Standard C++ Library Reference ISO/IEC (VERSION3)
allocator::size_type
typedef size_t size_type;
The unsigned integer type describes an object that can represent the length of any sequence that
an object of template class allocator can allocate.
allocator::value_type
typedef Ty value_type;
The type is a synonym for the template parameter Ty.
allocator<void>
template<>
class allocator<void> {
typedef void *pointer;
typedef const void *const_pointer;
typedef void value_type;
template<class Other>
struct rebind;
allocator();
template<class Other>
allocator(const allocator<Other>);
template<class Other>
allocator<void>& operator=(const allocator<Other>);
};
The class explicitly specializes template class allocator for type void. Its constructors and
assignment operator behave the same as for the template class, but it defines only the types
const_pointer, pointer, value_type, and the nested template class rebind.
auto_ptr
template<class Ty>
class auto_ptr {
public:
typedef Ty element_type;
explicit auto_ptr(Ty *ptr = 0) throw();
auto_ptr(auto_ptr<Ty>& right) throw();
template<class Other>
auto_ptr(auto_ptr<Other>& right) throw();
auto_ptr(auto_ptr_ref<Ty> right) throw();