11 #ifndef P6SCOPEDPTR_H__
12 #define P6SCOPEDPTR_H__ 1
44 typedef char ensure_type_is_complete[
sizeof(T)];
92 typedef char typemustbecomplete[
sizeof(T*)];
void swap(p6ScopedPtr &b)
Exchange ownership with another p6ScopedArray.
P6R::P6ERR(* P6ASSERT)(const P6R::P6WCHAR *pszExpr, const P6R::P6CHAR *pszFile, P6R::P6UINT32 nLine)
void reset(T *p=0)
Destroy any existing owned object, then take ownership of the object pointed to by p argument...
P6BOOL operator!=(T &p) const
P6BOOL operator==(T *p) const
T * release()
Return the wrapped raw pointer and give up ownership.
A simple smart pointer that mimics a standard pointer to an allocated object (allocated with new) and...