diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-09-23 18:25:23 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-09-23 18:25:23 +0100 |
commit | a922c5ff6f3872fc9ce1e484a0e92f288ff6c68d (patch) | |
tree | 62231e54ad2ab9735e402dda27e441a3c84f50bb /gcc/go | |
parent | b862552dff04fbd4c7debf07a7c82d361869a552 (diff) | |
download | gcc-a922c5ff6f3872fc9ce1e484a0e92f288ff6c68d.zip gcc-a922c5ff6f3872fc9ce1e484a0e92f288ff6c68d.tar.gz gcc-a922c5ff6f3872fc9ce1e484a0e92f288ff6c68d.tar.bz2 |
Optimize truncating a basic_string
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::erase(size_type, size_type)): Add fast path for
truncating the string, by calling _M_set_length directly.
(basic_string::erase(__const_iterator, __const_iterator)): Likewise.
* include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
(basic_string::resize(size_type, _CharT)): Likewise.
From-SVN: r240446
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions