Template:cpp/container/size ad

Returns the number of elements in the underlying container, that is,.

Parameters
(none)

Return value
The number of elements in the container.

Complexity
Constant.