53 std::cout <<
"ConstPtr constr(ptr)" <<std::endl;
63 std::cout <<
"ConstPtr constr(p)" << std::endl;
72 std::cout <<
"ConstPtr constr(p)" << std::endl;
ConstPtr & operator=(const ConstPtr< T > &p)
bool operator!=(const ConstPtr< T > &p) const
bool operator==(const T *p) const
Checks whether two pointers point to the same object.
T & operator*(void) const
const T * operator->(void) const
bool operator!=(const T *p) const
Checks whether two pointers do not point to the same object.
Belongs to package Box Do not include directly, include til/Box.h instead.
bool operator==(const ConstPtr< T > &p) const
General macros, definitions and functions.
Smart pointer for objects that can be modified.
ConstPtr()
Default constructor, pointing to NULL.
ConstPtr(const ConstPtr< T > &ptr)
T * operator->(void) const
ConstPtr & operator=(const T *p)
Assignement to a pointer.
Smart pointer for constant objects deriving from SmartObject.
const T & operator*(void) const