|
list::sizepublic member function
size_type size() const; Return size Returns the number of elements in the container.ParametersnoneReturn ValueThe number of elements that conform the list's content.Member type size_type is an unsigned integral type. Example
Output:
ComplexityConstant (recommended). Linear in some implementations.See also
|