Rosetta 3.3
Namespaces | Functions
src/utility/pointer/owning_ptr.functions.hh File Reference

owning_ptr acquire and release functions More...

Namespaces

namespace  utility
 

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


namespace  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.
template<typename T >
void utility::pointer::owning_ptr_release (T *p)
 Remove a reference from the object released by an owning_ptr.

Detailed Description

owning_ptr acquire and release functions

Author:
Stuart G. Mentzer (Stuart_Mentzer@objexx.com)
Remarks:
  • Objects owned by owning_ptr should inherit from ReferenceCount to get the reference counting mechanism and the add_ref and remove_ref functions.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines