Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo

...

In this noncompliant code example, the value i may value returned by the call to get_index() may be greater than the number of elements stored in the string, resulting in undefined behavior:

...

[ISO/IEC 14882-2014]

21.4.5, "basic_string Element Access"

[Seacord 2013b]Chapter 2, "Strings"