Commit 6c331f73 by Paolo Carlini Committed by Paolo Carlini

sso_string_base.h (__sso_string_base<>::_M_max_size(), [...]): Use _M_get_allocator.

2006-09-21  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/sso_string_base.h (__sso_string_base<>::_M_max_size(),
	_M_destroy, _M_create): Use _M_get_allocator.

From-SVN: r117111
parent 552afe9e
2006-09-21 Paolo Carlini <pcarlini@suse.de>
* include/ext/sso_string_base.h (__sso_string_base<>::_M_max_size(),
_M_destroy, _M_create): Use _M_get_allocator.
2006-09-21 Ben Elliston <bje@au.ibm.com>
* crossconfig.m4 (GLIBCXX_CROSSCONFIG): Remove invocations of
......
......@@ -137,7 +137,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
public:
size_type
_M_max_size() const
{ return (_M_dataplus._CharT_alloc_type::max_size() - 1) / 2; }
{ return (_M_get_allocator().max_size() - 1) / 2; }
_CharT*
_M_data() const
......@@ -225,7 +225,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
void
__sso_string_base<_CharT, _Traits, _Alloc>::
_M_destroy(size_type __size) throw()
{ _M_dataplus._CharT_alloc_type::deallocate(_M_data(), __size + 1); }
{ _M_get_allocator().deallocate(_M_data(), __size + 1); }
template<typename _CharT, typename _Traits, typename _Alloc>
void
......@@ -324,7 +324,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// NB: Need an array of char_type[__capacity], plus a terminating
// null char_type() element.
return _M_dataplus._CharT_alloc_type::allocate(__capacity + 1);
return _M_get_allocator().allocate(__capacity + 1);
}
template<typename _CharT, typename _Traits, typename _Alloc>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment