OSDN Git Service

2005-12-10 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Dec 2005 00:41:29 +0000 (00:41 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Dec 2005 00:41:29 +0000 (00:41 +0000)
commit169164630a30180d2b6a962d7094474d0a601ff2
tree6f2dff5fbecaa3fc1d3a8fbc15ad8d28758c8d84
parent744d9e7f7a7ebfe4feb847603c6c391c2db0e933
2005-12-10  Paolo Carlini  <pcarlini@suse.de>

* include/ext/sso_string_base.h (__sso_string_base<>::_M_compare):
Add, specialized for char and wchar_t to immediately return true
when a string is compared to itself.
* include/ext/rc_string_base.h (__rc_string_base<>::_M_compare):
Likewise, for the same _Rep.
* include/ext/vstring.h (compare(const string&)): Use it.

* include/ext/sso_string_base.h (__sso_string_base<>::_M_destroy):
Deallocate passed size + 1.
(_M_dispose, _M_reserve): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108372 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/rc_string_base.h
libstdc++-v3/include/ext/sso_string_base.h
libstdc++-v3/include/ext/vstring.h