|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <stlsoft_auto_destructor.h>
Public Types | |
| typedef T | value_type |
| The value type. | |
| typedef auto_destructor< T > | class_type |
| The current parameterisation of the type. | |
| typedef return_value_destructor< T > | return_value_type |
| The return value type. | |
| typedef return_value_type const & | return_value_rhs_type |
| The move construction type. | |
Public Methods | |
| auto_destructor (value_type *t) | |
| Constructs from the pointer to an instance whose lifetime will be managedd. | |
| auto_destructor (return_value_rhs_type rhs) | |
| Constructs from the return_value_type, transferring ownership from it. | |
| ~auto_destructor () | |
| Destroys the managed instance. | |
| value_type * | detach () |
| Detaches the managed instance from the auto_destructor and returns a pointer to it to the caller. | |
| operator value_type * () | |
| Implicit conversion to pointer to the managed instance. | |
| operator const value_type * () const | |
| Implicit conversion to pointer-to-const to the managed instance. | |
| T | The value type |
|
|
The current parameterisation of the type.
|
|
|
The move construction type.
|
|
|
The return value type.
|
|
|
The value type.
|
|
|
Constructs from the pointer to an instance whose lifetime will be managedd.
|
|
|
Constructs from the return_value_type, transferring ownership from it.
|
|
|
Destroys the managed instance.
|
|
|
Detaches the managed instance from the auto_destructor and returns a pointer to it to the caller.
|
|
|
Implicit conversion to pointer-to-const to the managed instance.
|
|
|
Implicit conversion to pointer to the managed instance.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |