Template Class ref_ptr

Class Documentation

template <class T>
class ref_ptr

Referenced pointer.

Public Types

typedef T element_type

Public Functions

ref_ptr()
ref_ptr(T *ptr)
ref_ptr(const ref_ptr &rp)
template <class Other>
ref_ptr(const ref_ptr<Other> &rp)
~ref_ptr()
ref_ptr &operator=(const ref_ptr &rp)
template <class Other>
ref_ptr &operator=(const ref_ptr<Other> &rp)
ref_ptr &operator=(T *ptr)
operator T *() const
T &operator*() const
T *operator->() const
T *get() const
bool operator!() const
bool valid() const
T *release()
void swap(ref_ptr &rp)