|
stack::sizepublic member function
size_type size ( ) const; Return size Returns the number of elements in the stack.This member function effectively calls the member with the same name in the underlying container object. ParametersnoneReturn ValueThe number of elements that conform the stack's container content.Member type size_type is an unsigned integral type. Example
Output:
ComplexityConstant.See also
|