Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6R::p6ScopedArray< T > Class Template Reference

#include <p6scopedarray.h>

Public Types

typedef T element_type
 

Public Member Functions

T * get () const
 
 operator T * ()
 
 p6ScopedArray (T *ptr=0)
 
T * release ()
 
void reset (T *p=0)
 
P6VOID swap (p6ScopedArray &b)
 
 ~p6ScopedArray ()
 

Detailed Description

template<typename T>
class P6R::p6ScopedArray< T >

A simple smart pointer that stores a pointer to an dynamically allocated array (allocated via new) and guarantees deletion on destruction or when the reset() method is called.

Warning
May not be passed as an interface argument
Not-Copyable
Not for use in an STL container

Definition at line 34 of file p6scopedarray.h.


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