null_allocator Class Template Reference
[Memory Library]

#include <stlsoft/memory/null_allocator.hpp>

Inheritance diagram for null_allocator:

allocator_base static_array_1d static_array_2d static_array_3d static_array_4d

List of all members.


Detailed Description

template<typename T>
class stlsoft::null_allocator< T >

STL Allocator that fails all allocation requests.

Parameters:
T The value_type of the allocator
Note:
When exception support is enabled, instances of this type will throw std::bad_alloc for any allocation request (even if the requested size is 0). When exception support is not enabled, requesting memory from this class is a contract violation, and an enforcement will fire (if contract programming enforcement is enabled).

Public Types

typedef null_allocator< T > class_type
 The parameterisation of the class.
typedef
parent_class_type::value_type 
value_type
 The value type.
typedef parent_class_type::pointer pointer
 The pointer type.
typedef
parent_class_type::const_pointer 
const_pointer
 The non-mutating (const) pointer type.
typedef
parent_class_type::reference 
reference
 The reference type.
typedef
parent_class_type::const_reference 
const_reference
 The non-mutating (const) reference type.
typedef
parent_class_type::difference_type 
difference_type
 The difference type.
typedef
parent_class_type::size_type 
size_type
 The size type.

Public Member Functions

Construction
 null_allocator () throw ()
 Default constructor.
 null_allocator (class_type const &)
 Copy constructor.

Member Typedef Documentation

The parameterisation of the class.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The value type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The pointer type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The non-mutating (const) pointer type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The reference type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The non-mutating (const) reference type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The difference type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.

The size type.

Reimplemented from allocator_base.

Reimplemented in static_array_1d, static_array_2d, static_array_3d, and static_array_4d.


Constructor & Destructor Documentation

null_allocator (  )  throw () [inline]

Default constructor.

null_allocator ( class_type const &   )  [inline]

Copy constructor.


The documentation for this class was generated from the following file:

Generated on Thu Jun 10 08:58:53 2010 for STLSoft by  doxygen 1.5.6