#include <stlsoft/memory/auto_destructor.hpp>
T | The value type |
new
for scalar new
.
Types | |
typedef T | value_type |
The value type. | |
typedef auto_array_destructor< T > | class_type |
The current parameterisation of the type. | |
typedef return_value_array_destructor < T > | return_value_type |
The return value type. | |
Public Member Functions | |
Construction | |
auto_array_destructor (value_type t[]) | |
Constructs from the pointer to the array whose lifetimes will be managedd. | |
auto_array_destructor (proxy_type rhs) | |
Proxy move constructor. | |
~auto_array_destructor () throw () | |
Destroys the managed array. | |
Operations | |
value_type * | detach () |
Detaches the managed instance from the auto_array_destructor and returns a pointer to it to the caller. | |
Accessors | |
value_type * | operator-> () |
Implicit conversion to pointer to the managed instance. | |
value_type const * | operator-> () const |
Implicit conversion to pointer-to-const to the managed instance. | |
value_type * | get_ptr () const |
Returns the pointer. | |
value_type * | get () const |
Returns the pointer. |
typedef T value_type |
The value type.
typedef auto_array_destructor<T> class_type |
The current parameterisation of the type.
typedef return_value_array_destructor<T> return_value_type |
The return value type.
auto_array_destructor | ( | value_type | t[] | ) | [inline, explicit] |
Constructs from the pointer to the array whose lifetimes will be managedd.
auto_array_destructor | ( | proxy_type | rhs | ) | [inline] |
Proxy move constructor.
~auto_array_destructor | ( | ) | throw () [inline] |
Destroys the managed array.
value_type* detach | ( | ) | [inline] |
Detaches the managed instance from the auto_array_destructor and returns a pointer to it to the caller.
value_type* operator-> | ( | ) | [inline] |
Implicit conversion to pointer to the managed instance.
value_type const* operator-> | ( | ) | const [inline] |
Implicit conversion to pointer-to-const to the managed instance.
value_type* get_ptr | ( | ) | const [inline] |
Returns the pointer.
value_type* get | ( | ) | const [inline] |
Returns the pointer.