#include <nub/ref.h>
Public Member Functions | |
floating_ref (T *ptr) | |
T * | operator-> () const throw () |
T & | operator* () const throw () |
T * | get () const throw () |
nub::floating_ref<T> is a ref-counted smart pointer that will NOT delete its pointee when exiting scope. This can be of use to clients who need to allow an object to be returned to a clean state (i.e. with ref count == 0), but need to ref the object temporarily. Since floating_ref should only be used in restricted scopes, copying and assignment are disallowed.
Definition at line 421 of file ref.h.