1 #ifndef vbl_scoped_ptr_h_ 2 #define vbl_scoped_ptr_h_ 21 # include <vcl_msvc_warnings.h> 111 explicit operator bool ()
const 113 return ptr_ ? true :
false;
131 #endif // vbl_scoped_ptr_h_ vbl_scoped_ptr(T *p=nullptr)
void swap(vbl_scoped_ptr &b)
~vbl_scoped_ptr()
T must be complete when this destructor is instantiated.
vbl_scoped_ptr mimics a built-in pointer except that it guarantees deletion of the object pointed to,...
void reset(T *p=nullptr)
Make this own p, releasing any existing pointer.
vbl_scoped_ptr< T > this_type
vbl_scoped_ptr(vbl_scoped_ptr const &)=delete
void vbl_checked_delete(T *x)
Checks that T is complete and deletes x.
vbl_scoped_ptr & operator=(vbl_scoped_ptr const &)=delete