basic_string.h (_S_create(size_t, const _Alloc&): Change signature to take two size_t...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 28 Jan 2004 10:37:32 +0000 (10:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 28 Jan 2004 10:37:32 +0000 (10:37 +0000)
commit234e0d312169ca44b701314d4f67c2a07cd5a896
treeec59f9b8a30f81398a50bb6d291a5d0d8b9431a5
parent220a38ab6e9973dac69fa339127b88b57e44dc9b
basic_string.h (_S_create(size_t, const _Alloc&): Change signature to take two size_type arguments.

2004-01-28  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.h (_S_create(size_t,
const _Alloc&): Change signature to take two size_type
arguments.
* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Update
call, tweak a bit.
(_S_construct(_InIterator, _InIterator, const _Alloc&,
forward_iterator_tag)): Likewise.
(_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
(_M_mutate(size_type, size_type, size_type)): Don't
implement the exponential growth policy, demand it to
_S_create, update call and simplify.
(_M_clone(const _Alloc&, size_type)): Likewise.
(_S_create(size_type, size_type, const _Alloc&)): Implement
the growth policy, simplify otherwise.

* include/bits/basic_string.h (_Rep::operator[]): Tweak
signature to take a size_type, consistently with the other
members.

From-SVN: r76786
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/basic_string.tcc