size [C++ Reference]
Keywords: string,size
Date: 2009-09-07T12:20:24-0700

[[size]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## size

Syntax:

        #include <string>
        size_type size() const;

The size method returns the number of characters in the current string.

The size method usually runs in constant time.

Related Topics: capacity, empty, length, max_size, resize

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •