Is this syntax correct?
// return the number nodes
size_t Capacity () const
{
size_t j = Size();
size_t h = Excess();
return j+h+2;
}
Last edited on
The syntax is correct if Capacity () is part of a class or struct. Note that Size() and Excess() also needs to be const.