Skip to main content

fixstr::basic_fixed_string::end
fixstr::basic_fixed_string::cend

1#
[[nodiscard]] constexpr iterator end() noexcept;
2#
[[nodiscard]] constexpr const_iterator end() const noexcept;
3#
[[nodiscard]] constexpr const_iterator cend() const noexcept;

Returns an iterator to the character following the last character of the fixed string.

This character acts as a placeholder, attempting to access it results in undefined behavior.

Image explaining iterators

Parameters#

(none)

Return value#

Iterator to the character following the last character.

Complexity#

Constant.

Example#

#include <algorithm>#include <fixed_string.hpp>#include <iostream>
int main(){    fixstr::fixed_string s = "Exemparl";    std::next_permutation(s.begin(), s.end());    std::cout << s << '\n'; // "Exemplar"}
Output:
Exemplar