...
This noncompliant code example copies input
into a std::string
, replacing semicolon (;)
characters characters with spaces. This example is noncompliant because the iterator loc
is invalidated after the first call to insert()
. The behavior of subsequent calls to insert()
is undefined.
...