Difference between revisions of "Template:cpp/container/size"
From cppreference.com
m (Text replace - "{{mark c++11 version}}" to "{{mark since c++11}}") |
m (Text replace - "{{mark pre c++11 version}}" to "{{mark until c++11}}") |
||
Line 17: | Line 17: | ||
===Complexity=== | ===Complexity=== | ||
− | {{#ifeq: {{{1|}}}|list|Constant or linear {{mark | + | {{#ifeq: {{{1|}}}|list|Constant or linear {{mark until c++11}} |
Constant {{mark since c++11}}|Constant}} | Constant {{mark since c++11}}|Constant}} |
Revision as of 14:59, 24 December 2011
Template:cpp/container//sidebar
size_type size() const; |
Template:cpp/container/mark c++11 feature | |
Returns the number of elements in the container, i.e. Template:cpp.
Contents |
Parameters
(none)
Return value
the number of elements in the container
Exceptions
noexcept specification:
noexcept
Complexity
Constant