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