Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Public Member Functions | List of all members
member_ptr< T > Class Template Reference

Pointer that overloads operator→ More...

+ Inheritance diagram for member_ptr< T >:

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
Tclass or type

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).

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: