This class has identical behavior to scoped_ptr, except it manages heap-allocated arrays instead of heap-allocated single objects. More...
#include <scoped_resource.hpp>

Public Member Functions | |
| scoped_array (T *p) | |
Public Member Functions inherited from util::scoped_resource< T *, delete_array > | |
| scoped_resource (resource_type res=resource_type()) | |
| Constructor. More... | |
| virtual | ~scoped_resource () |
| The destructor is the main point in this class. More... | |
| operator resource_type () const | |
| This operator makes sure you can access and use the scoped_resource just like you were using the resource itself. More... | |
| resource_type | get () const |
| This function provides explicit access to the resource. More... | |
| resource_type | operator-> () const |
| This function provides convenient direct access to the -> operator if the underlying resource is a pointer. More... | |
| void | assign (const resource_type &o) |
Additional Inherited Members | |
Public Types inherited from util::scoped_resource< T *, delete_array > | |
| typedef T * | resource_type |
| typedef delete_array | release_type |
This class has identical behavior to scoped_ptr, except it manages heap-allocated arrays instead of heap-allocated single objects.
Usage example:
Definition at line 177 of file scoped_resource.hpp.
|
inlineexplicit |
Definition at line 179 of file scoped_resource.hpp.
1.8.8