Namespaces
Variants
Views
Actions

std::basic_string<CharT,Traits,Allocator>::end, std::basic_string<CharT,Traits,Allocator>::cend

From cppreference.com
< cpp‎ | string‎ | basic string
Revision as of 10:51, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
std::basic_string
Member functions
Element access
Iterators
basic_string::endbasic_string::cend
(C++11)
Capacity
Modifiers
Search
Operations
Constants
Non-member functions
I/O
Comparison
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Numeric conversions
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Literals
Helper classes
Deduction guides (C++17)

 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
iterator end();
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
const_iterator end() const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
const_iterator cend() const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns an iterator to the character following the last character of the string. This character acts as a placeholder, attempting to access it results in undefined behavior.

Contents

Parameters

(none)

Return value

iterator to the character following the last character

Complexity

Constant

See also

Template:cpp/string/basic string/dcl list begin