length [C++ Reference]
Keywords: string,length
Date: 2009-09-20T11:39:34-0700

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

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

## length

Syntax:

        #include <string>
        size_type length() const;

The length() function returns the number of elements in the current string, performing the same role as the size() function.

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

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