mirror of git://gcc.gnu.org/git/gcc.git
basic_string.h (_Rep::operator[]): Remove, unused.
2004-01-31 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (_Rep::operator[]): Remove, unused. * include/bits/basic_string.h: Fix two comments. From-SVN: r77044
This commit is contained in:
parent
a457ee07af
commit
8de63ee0d7
|
@ -1,3 +1,9 @@
|
||||||
|
2004-01-31 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
|
* include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
|
||||||
|
|
||||||
|
* include/bits/basic_string.h: Fix two comments.
|
||||||
|
|
||||||
2004-01-31 Per Bothner <per@bothner.com>
|
2004-01-31 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
* include/ext/mt_allocator.h
|
* include/ext/mt_allocator.h
|
||||||
|
@ -154,7 +160,7 @@
|
||||||
|
|
||||||
2004-01-28 Stefan Olsson <stefan@snon.net>
|
2004-01-28 Stefan Olsson <stefan@snon.net>
|
||||||
|
|
||||||
* include/ext/mt_allocator.h: Replaced all malloc() calls with
|
* include/ext/mt_allocator.h: Replaced all malloc() calls with
|
||||||
operator new(). Added support for the env variable
|
operator new(). Added support for the env variable
|
||||||
GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
|
GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
|
||||||
one in allocate() as well). Fix typos.
|
one in allocate() as well). Fix typos.
|
||||||
|
|
|
@ -132,7 +132,7 @@ namespace std
|
||||||
// 1. String really contains _M_length + 1 characters: due to 21.3.4
|
// 1. String really contains _M_length + 1 characters: due to 21.3.4
|
||||||
// must be kept null-terminated.
|
// must be kept null-terminated.
|
||||||
// 2. _M_capacity >= _M_length
|
// 2. _M_capacity >= _M_length
|
||||||
// Allocated memory is always _M_capacity + (1 * sizeof(_CharT)).
|
// Allocated memory is always (_M_capacity + 1) * sizeof(_CharT).
|
||||||
// 3. _M_refcount has three states:
|
// 3. _M_refcount has three states:
|
||||||
// -1: leaked, one reference, no ref-copies allowed, non-const.
|
// -1: leaked, one reference, no ref-copies allowed, non-const.
|
||||||
// 0: one reference, non-const.
|
// 0: one reference, non-const.
|
||||||
|
@ -197,10 +197,6 @@ namespace std
|
||||||
_M_refdata() throw()
|
_M_refdata() throw()
|
||||||
{ return reinterpret_cast<_CharT*>(this + 1); }
|
{ return reinterpret_cast<_CharT*>(this + 1); }
|
||||||
|
|
||||||
_CharT&
|
|
||||||
operator[](size_type __s) throw()
|
|
||||||
{ return _M_refdata() [__s]; }
|
|
||||||
|
|
||||||
_CharT*
|
_CharT*
|
||||||
_M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2)
|
_M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2)
|
||||||
{
|
{
|
||||||
|
@ -1460,8 +1456,8 @@ namespace std
|
||||||
/**
|
/**
|
||||||
* @brief Return const pointer to contents.
|
* @brief Return const pointer to contents.
|
||||||
*
|
*
|
||||||
* This is a handle to internal data. It may not be null-terminated.
|
* This is a handle to internal data. Do not modify or dire things may
|
||||||
* Do not modify or dire things may happen.
|
* happen.
|
||||||
*/
|
*/
|
||||||
const _CharT*
|
const _CharT*
|
||||||
data() const { return _M_data(); }
|
data() const { return _M_data(); }
|
||||||
|
|
Loading…
Reference in New Issue