Method ADT.CircularList()->set_max_size()


Method set_max_size

int set_max_size(int(0..) new_size)

Parameter new_size

The new size of the list.

Returns

Returns the old maximal size of the list.

Note

When reducing in size, elements that no longer fit are dropped from the back.

See also

allocate(), max_size()