11 #ifndef P6SCOPEDPTR_H__
12 #define P6SCOPEDPTR_H__ 1
45 typedef char ensure_type_is_complete[
sizeof(T)];
93 typedef char typemustbecomplete[
sizeof(T*)];
112 #endif // __cplusplus
void swap(p6ScopedPtr &b)
Exchange ownership with another p6ScopedArray.
unsigned char P6BOOL
Boolean type.
void reset(T *p=0)
Destroy any existing owned object, then take ownership of the object pointed to by p argument...
P6ERR(P6CCALL * P6ASSERT)(const P6WCHAR *pszExpr, const P6CHAR *pszFile, P6UINT32 nLine)
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...