placement_aid Class Template Reference
[Utility Library]

#include <stlsoft/util/placement_aid.hpp>

List of all members.


Detailed Description

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

Scopes the lifetime of an object created by placement new.

Parameters:
T The type of the object created by placement new

Public Types

typedef T value_type
 The value type.
typedef placement_aid< T > class_type
 The type of the current parameterisation.

Public Member Functions

 placement_aid (void *pv)
 Create an instance of the value_type at the given location.
 ~placement_aid () throw ()
 In-place destroy the object instance.
 operator T & ()
 Implicit conversion operator to a reference to the in-place object instance.
 operator T const & () const
 Implicit conversion operator to a non-mutable (const) reference to the in-place object instance.
T * operator & ()
 Address-of operator, providing pointer access to the in-place object instance.
T const * operator & () const
 Address-of operator, providing non-mutable (const) pointer access to the in-place object instance.

Member Typedef Documentation

typedef T value_type

The value type.

The type of the current parameterisation.


Constructor & Destructor Documentation

placement_aid ( void *  pv  )  [inline, explicit]

Create an instance of the value_type at the given location.

Parameters:
pv The location at which to in-place construct the object instance

~placement_aid (  )  throw () [inline]

In-place destroy the object instance.


Member Function Documentation

operator T & (  )  [inline]

Implicit conversion operator to a reference to the in-place object instance.

operator T const & (  )  const [inline]

Implicit conversion operator to a non-mutable (const) reference to the in-place object instance.

T* operator & (  )  [inline]

Address-of operator, providing pointer access to the in-place object instance.

T const* operator & (  )  const [inline]

Address-of operator, providing non-mutable (const) pointer access to the in-place object instance.


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

Generated on Thu Jun 10 08:59:03 2010 for STLSoft by  doxygen 1.5.6