...
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, " |
[Seacord 2013b] | Chapter 2, "Strings" |