Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #80555

If string::c_str() doesn't invalidate iterators ...

From Kli-Kla-Klawitter <kliklaklawitter69@gmail.com>
Newsgroups comp.lang.c++
Subject If string::c_str() doesn't invalidate iterators ...
Date 2021-06-24 16:50 +0200
Organization Aioe.org NNTP Server
Message-ID <sb2646$6um$1@gioia.aioe.org> (permalink)

Show all headers | View raw


If string::c_str() doesn't invalidate iterators, I could access
str[str.length()] safely myself even it's outside the bounds
because the storage for the zero-termination must be pre-allocated
to terminate the string in-place. Cooooooooooooooool!

Back to comp.lang.c++ | Previous | NextNext in thread | Find similar | Unroll thread


Thread

If string::c_str() doesn't invalidate iterators ... Kli-Kla-Klawitter <kliklaklawitter69@gmail.com> - 2021-06-24 16:50 +0200
  Re: If string::c_str() doesn't invalidate iterators ... Öö Tiib <ootiib@hot.ee> - 2021-06-24 08:27 -0700
    Re: If string::c_str() doesn't invalidate iterators ... "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2021-06-24 17:37 +0200

csiph-web