Template Class ref_ptr

Class Documentation

template<class T>
class ref_ptr

Referenced pointer.

Public Types

typedef T element_type

Public Functions

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