Namespaces
Variants
Views
Actions

std::{{{1}}}::size

From cppreference.com
Revision as of 02:38, 20 February 2012 by P12bot (Talk | contribs)

Template:cpp/container//sidebar

size_type size() const;

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

See also

Template:cpp/container/dcl list emptyTemplate:cpp/container/dcl list max size