STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

placement_aid Class Template Reference

Scopes the lifetime of an in-place object. More...

#include <stlsoft_placement_aid.h>

List of all members.

Public Types

typedef T value_type
 The value type.

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


Public Methods

 placement_aid (void *pv)
 Create an instance of the value_type at the given location.

 ~placement_aid ()
 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.


Detailed Description

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

Scopes the lifetime of an in-place object.

Parameters:
T  The type of the in-place object


Member Typedef Documentation

typedef placement_aid<T> class_type
 

The type of the current parameterisation.

typedef T value_type
 

The value type.


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   [inline]
 

In-place destroy the object instance.


Member Function Documentation

T const* operator &   const [inline]
 

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

T* operator &   [inline]
 

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

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.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004