istream.tcc (operator>>(basic_istream<>&, basic_string<>&)): Use a temporary buffer...
authorPaolo Carlini <pcarlini@suse.de>
Thu, 20 May 2004 22:06:40 +0000 (22:06 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 20 May 2004 22:06:40 +0000 (22:06 +0000)
commit3adf6cadbbfe23b96f8e53780ae5f1bc28f01077
tree55473afcedd65e7d1365380c1abb7e2c8759c1cf
parentb8850dd24642e8db12cb09726aaad3295c0b10c4
istream.tcc (operator>>(basic_istream<>&, basic_string<>&)): Use a temporary buffer, thus avoiding reallocation for common case.

2004-05-20  Paolo Carlini  <pcarlini@suse.de>

* include/bits/istream.tcc (operator>>(basic_istream<>&,
basic_string<>&)): Use a temporary buffer, thus avoiding
reallocation for common case.
* testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
New.
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
Likewise.

* include/bits/istream.tcc: Const-ification of a few variables.

* include/bits/ostream.tcc: Trivial formatting fixes and
const-ification of some variables.

From-SVN: r82070
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/include/bits/ostream.tcc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc [new file with mode: 0644]