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

owning_ptr acquire and release functions More...

Namespaces

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

Functions

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

Author
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)
Remarks
  • Objects owned by owning_ptr should inherit from ReferenceCount to get the reference counting mechanism and the add_ref and remove_ref functions.