Rosetta Utilities  2014.35
Namespaces | Functions
owning_ptr.functions.hh File Reference

owning_ptr acquire and release functions More...


 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.


template<typename T >
void utility::pointer::owning_ptr_acquire (T *p)
 Add a reference to the object acquired by an owning_ptr. More...
template<typename T >
void utility::pointer::owning_ptr_release (T *p)
 Remove a reference from the object released by an owning_ptr. More...

Detailed Description

owning_ptr acquire and release functions

Stuart G. Mentzer (
  • Objects owned by owning_ptr should inherit from ReferenceCount to get the reference counting mechanism and the add_ref and remove_ref functions.