basic_string.h (_M_set_length_and_sharable): New.
authorPaolo Carlini <pcarlini@suse.de>
Thu, 21 Oct 2004 22:01:41 +0000 (22:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 21 Oct 2004 22:01:41 +0000 (22:01 +0000)
commitcbf52bfab354f91e60cebcf3665a2efc88690fbe
tree3c711b8183645789744086e31065f591f7b3afef
parentd46cf62c7901fcbeaf1f79d09e04213da86cb163
basic_string.h (_M_set_length_and_sharable): New.

2004-10-21  Paolo Carlini  <pcarlini@suse.de>
    Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/basic_string.h (_M_set_length_and_sharable): New.
* include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
size_type), _M_mutate, _M_clone): Use it.
(_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r89415
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/basic_string.tcc