member_ptr< T > Class Template Reference
Pointer that overloads operator→.
More...
List of all members.
Public Member Functions |
| member_ptr (T *p=NULL) |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
const T * | get () const |
T * | get () |
T * | release () |
void | reset (T *p=0) |
Detailed Description
template<class T>
class member_ptr< T >
Pointer that overloads operator→.
- Template Parameters:
-
member_ptr is used frequently in the library to avoid the issues related to std::auto_ptr in C++11 (deprecated) and std::unique_ptr in C++03 (non-existent).
- Bug:
- Issue 48: "Use of auto_ptr causes dirty compile under C++11"
Definition at line 39 of file smartptr.h.
The documentation for this class was generated from the following file: