12 #ifndef P6SCOPEDARRAY_H__
13 #define P6SCOPEDARRAY_H__ 1
52 typedef char ensure_type_is_complete[
sizeof(T)];
57 return static_cast<T*
>(m_ptr);
114 #endif // __cplusplus
T * release()
Return the wrapped raw pointer and give up ownership.
Threading interfaces and definitions.
P6VOID swap(p6ScopedArray &b)
Exchange ownership with another p6ScopedArray.
P6COM runtime interfaces definitions.
Log producer component interfaces.
void reset(T *p=0)
Destroy any existing owned array, then take ownership of the array pointed to by p argument...
A simple smart pointer that stores a pointer to an dynamically allocated array (allocated via new) an...
P6COM runtime interfaces definitions.