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  

return_value_destructor Class Template Reference

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

#include <stlsoft_auto_destructor.h>

List of all members.

Public 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.

typedef class_type const & rhs_type
 The move construction type.


Public Methods

 return_value_destructor (auto_type &rhs)
 Construct from an auto_destructor<T>, transferring the managed instance from it.

 return_value_destructor (rhs_type rhs)
 Move constructor

 ~return_value_destructor ()
 Destroys the managed instance.


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


Member Typedef Documentation

typedef auto_destructor<T> auto_type
 

The auto type.

typedef return_value_destructor<T> class_type
 

The current parameterisation of the type.

typedef class_type const& rhs_type
 

The move construction type.

typedef T value_type
 

The value 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 rhs_type    rhs [inline]
 

Move constructor

~return_value_destructor   [inline]
 

Destroys the managed instance.


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

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