This is the mail archive of the libstdc++-cvs@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r108013 - in /branches/libstdcxx_so_7-branch/li...


Author: paolo
Date: Sun Dec  4 18:13:34 2005
New Revision: 108013

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108013
Log:
2005-12-04  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (basic_string<>::operator+, all
	versions): Move out of line...
	* include/bits/basic_string.tcc (basic_string<>::operator+): ...
	here; consistently use reserve for the benefit of sso_string;
	prefer push_back to single-char append when appropriate.

	* include/bits/basic_string.h (basic_string<>::push_back): Don't
	call _M_reserve, _M_mutate instead.
	(reserve): Just forward to _M_reserve.
	* include/bits/basic_string.tcc (basic_string<>::_M_reserve): Remove.
	* include/ext/rc_string.h (__rc_string<>::_M_reserve): Also do the
	initial checks (first on length, in case __res == capacity).
	* include/ext/sso_string.h (__sso_string<>::_M_reserve: Likewise;
	don't call _M_set_length unnecessarily.

Modified:
    branches/libstdcxx_so_7-branch/libstdc++-v3/ChangeLog.libstdcxx_so_7-branch
    branches/libstdcxx_so_7-branch/libstdc++-v3/include/bits/basic_string.h
    branches/libstdcxx_so_7-branch/libstdc++-v3/include/bits/basic_string.tcc
    branches/libstdcxx_so_7-branch/libstdc++-v3/include/ext/rc_string.h
    branches/libstdcxx_so_7-branch/libstdc++-v3/include/ext/sso_string.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]