Files
cppdraft_translate/cppdraft/string/iterators.md
2025-10-25 03:02:53 +03:00

1.8 KiB

[string.iterators]

27 Strings library [strings]

27.4 String classes [string.classes]

27.4.3 Class template basic_string [basic.string]

27.4.3.4 Iterator support [string.iterators]

🔗

constexpr iterator begin() noexcept; constexpr const_iterator begin() const noexcept; constexpr const_iterator cbegin() const noexcept;

1

#

Returns: An iterator referring to the first character in the string.

🔗

constexpr iterator end() noexcept; constexpr const_iterator end() const noexcept; constexpr const_iterator cend() const noexcept;

2

#

Returns: An iterator which is the past-the-end value.

🔗

constexpr reverse_iterator rbegin() noexcept; constexpr const_reverse_iterator rbegin() const noexcept; constexpr const_reverse_iterator crbegin() const noexcept;

3

#

Returns: An iterator which is semantically equivalent toreverse_iterator(end()).

🔗

constexpr reverse_iterator rend() noexcept; constexpr const_reverse_iterator rend() const noexcept; constexpr const_reverse_iterator crend() const noexcept;

4

#

Returns: An iterator which is semantically equivalent toreverse_iterator(begin()).