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

#include <p6scopedptr.h>

Public Types

typedef T element_type
 

Public Member Functions

T * get () const
 
P6BOOL operator! () const
 
P6BOOL operator!= (T &p) const
 
T & operator* () const
 
T * operator-> () const
 
P6BOOL operator== (T *p) const
 
 p6ScopedPtr (T *ptr=0)
 
T * release ()
 
void reset (T *p=0)
 
void swap (p6ScopedPtr &b)
 
 ~p6ScopedPtr ()
 

Detailed Description

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

A simple smart pointer that mimics a standard pointer to an allocated object (allocated with new) and guarantees deletion on destruction or when reset() is called.

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

Definition at line 27 of file p6scopedptr.h.


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