2004-10-06 Paolo Carlini <pcarlini@suse.de> * include/std/std_sstream.h (_M_sync): When the caller is setbuf, don't trust _M_string.capacity() to be the size of the buffer area, use _M_string.size() in this case. * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New. * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise. * include/bits/sstream.tcc (overflow): Avoid calling string::assign unnecessarily when the current _M_string is empty. 2004-10-06 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)): Avoid iterator postincrement. (__rotate): Likewise. * include/bits/stl_algo.h: Minor formatting tweaks. 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk> * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)): Avoid iterator postincrement; fix swapping middle element with itself on odd-length inputs. From-SVN: r88593
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| std_algorithm.h | Loading commit data... | |
| std_bitset.h | Loading commit data... | |
| std_complex.h | Loading commit data... | |
| std_deque.h | Loading commit data... | |
| std_fstream.h | Loading commit data... | |
| std_functional.h | Loading commit data... | |
| std_iomanip.h | Loading commit data... | |
| std_ios.h | Loading commit data... | |
| std_iosfwd.h | Loading commit data... | |
| std_iostream.h | Loading commit data... | |
| std_istream.h | Loading commit data... | |
| std_iterator.h | Loading commit data... | |
| std_limits.h | Loading commit data... | |
| std_list.h | Loading commit data... | |
| std_locale.h | Loading commit data... | |
| std_map.h | Loading commit data... | |
| std_memory.h | Loading commit data... | |
| std_numeric.h | Loading commit data... | |
| std_ostream.h | Loading commit data... | |
| std_queue.h | Loading commit data... | |
| std_set.h | Loading commit data... | |
| std_sstream.h | Loading commit data... | |
| std_stack.h | Loading commit data... | |
| std_stdexcept.h | Loading commit data... | |
| std_streambuf.h | Loading commit data... | |
| std_string.h | Loading commit data... | |
| std_utility.h | Loading commit data... | |
| std_valarray.h | Loading commit data... | |
| std_vector.h | Loading commit data... |