1 #ifndef UTIL_SCOPED_PTR_H 2 #define UTIL_SCOPED_PTR_H 91 {
return (p.
get() == 0); }
~ScopedPtr()
Destructor, destroys object pointed to, if any.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.
T * operator->() const
Member access.
bool isNull(FlexPtr< T > p)
Return true iff the enclosed built-in pointer is null.
T & operator*() const
Dereference.
A very simple RAII pointer.
void reset(T *p=0)
Acquire ownership of a built-in pointer.
ScopedPtr(T *p=0)
Constructor.
T * get() const
Return enclosed built-in pointer.
T element_type
Type of object pointed to.