return_value_destructor Class Template Reference
[Memory Library]

#include <stlsoft/memory/auto_destructor.hpp>

List of all members.


Detailed Description

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

This class acts as a return-value scope variable that manages heap-allocated object instances.

Parameters:
T The value type
See also:
stlsoft::auto_destructor
Examples:

by_library/memory/auto_destructor/auto_destructor.cpp.


Types

typedef T value_type
 The value type.
typedef
return_value_destructor< T > 
class_type
 The current parameterisation of the type.
typedef auto_destructor< T > auto_type
 The auto type.

Public Member Functions

Construction
 return_value_destructor (auto_type &rhs)
 Construct from an auto_destructor<T>, transferring the managed instance from it.
 return_value_destructor (class_type &rhs)
 Move constructor.
 return_value_destructor (proxy_type rhs)
 Proxy move constructor.
 ~return_value_destructor () throw ()
 Destroys the managed instance.
 operator proxy_type ()
 Proxy conversion operator.

Member Typedef Documentation

typedef T value_type

The value type.

The current parameterisation of the type.

The auto type.


Constructor & Destructor Documentation

return_value_destructor ( auto_type rhs  )  [inline]

Construct from an auto_destructor<T>, transferring the managed instance from it.

return_value_destructor ( class_type rhs  )  [inline]

Move constructor.

return_value_destructor ( proxy_type  rhs  )  [inline]

Proxy move constructor.

~return_value_destructor (  )  throw () [inline]

Destroys the managed instance.

References STLSOFT_ASSERT, and STLSOFT_MESSAGE_ASSERT.


Member Function Documentation

operator proxy_type (  )  [inline]

Proxy conversion operator.


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