basic_string.tcc (_M_mutate): Do not reallocate unnecessarily when _M_rep() ==…
basic_string.tcc (_M_mutate): Do not reallocate unnecessarily when _M_rep() == &_S_empty_rep() and __new_size... 2004-10-18 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.tcc (_M_mutate): Do not reallocate unnecessarily when _M_rep() == &_S_empty_rep() and __new_size == capacity() (== 0): is ok to just leave everything unchanged. * include/bits/basic_string.h: Minor formatting fixes. * include/bits/basic_string.tcc: Likewise. From-SVN: r89199
Showing
Please
register
or
sign in
to comment