*a
is equivalent to
a.operator*()
Type& Type::operator++()
{
// Increment the object...
return *this;
}
int
parameter to distinguish the post- from the pre- operators.
Type Type::operator++(int)
{
Type original = *this;
// Increment the object...
return original;
}
This page was last modified on Feb 1, 2001
URL: http://people.hsc.edu/faculty-staff/robbk/Coms262/Lectures/UnaryOperators.html