diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2004-01-29 00:18:40 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2004-01-29 00:18:40 +0000 |
commit | ba9d552e03a1b1d0daa792d157d5268020300afc (patch) | |
tree | 436fcf4b51f314a43559cf24267e305879ad9edf /libstdc++-v3/include/ext/ropeimpl.h | |
parent | 63d47f2ab40888e60069135b3838f4fdcf42c7e9 (diff) | |
download | gcc-ba9d552e03a1b1d0daa792d157d5268020300afc.zip gcc-ba9d552e03a1b1d0daa792d157d5268020300afc.tar.gz gcc-ba9d552e03a1b1d0daa792d157d5268020300afc.tar.bz2 |
Makefile.am (bits_headers): Remove allocator_traits.h.
2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (bits_headers): Remove allocator_traits.h.
* include/Makefile.in: Regenerate.
* include/bits/allocator_traits.h: Remove.
* include/bits/allocator.h: Remove allocator_traits.h include, and
relevant comments.
(allocator): Empty base class, inherit from the underlying allocator.
* src/allocator-inst.cc: Move __pool_alloc instantiation to...
* src/allocator.cc: ...here. New. For the underlying allocators.
Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
* config/linker-map.gnu: Remove __pool_alloc bits.
* src/Makefile.am (sources): Add allocator.cc.
* src/Makefile.in: Regenerate.
* testsuite/20_util/allocator/1.cc: Split second test into...
* testsuite/20_util/allocator/8230.cc: ...this.
* include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
typedef to use std::allocatore. Format.
* include/ext/pool_allocator.h: Remove allocator_traits.h include,
_Alloc_traits.
* include/ext/mt_allocator.h (__gnu_cxx): Qualify
__throw_bad_alloc calls. Don't include <memory>.
* include/ext/malloc_allocator.h: Remove <memory> include.
* include/ext/new_allocator.h (new_allocator): Same.
* include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
declaration. Switch __alloc to _Alloc.
* include/ext/hashtable.h: Remove __alloc.
* include/backward/alloc.h: Only inject allocator, not
implementation details.
* include/ext/mt_allocator.h: Replace free with delete.
From-SVN: r76821
Diffstat (limited to 'libstdc++-v3/include/ext/ropeimpl.h')
-rw-r--r-- | libstdc++-v3/include/ext/ropeimpl.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h index 0c92de4..0e545fe 100644 --- a/libstdc++-v3/include/ext/ropeimpl.h +++ b/libstdc++-v3/include/ext/ropeimpl.h @@ -1,6 +1,6 @@ // SGI's rope class implementation -*- C++ -*- -// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -59,7 +59,6 @@ namespace __gnu_cxx using std::printf; using std::basic_ostream; using std::__throw_length_error; - using std::__alloc; using std::_Destroy; using std::uninitialized_fill_n; @@ -875,15 +874,15 @@ bool rope<_CharT, _Alloc>::_S_apply_to_pieces( size_t __len = __end - __begin; bool __result; _CharT* __buffer = - (_CharT*)__alloc::allocate(__len * sizeof(_CharT)); + (_CharT*)_Alloc::allocate(__len * sizeof(_CharT)); try { (*(__f->_M_fn))(__begin, __len, __buffer); __result = __c(__buffer, __len); - __alloc::deallocate(__buffer, __len * sizeof(_CharT)); + _Alloc::deallocate(__buffer, __len * sizeof(_CharT)); } catch(...) { - __alloc::deallocate(__buffer, __len * sizeof(_CharT)); + _Alloc::deallocate(__buffer, __len * sizeof(_CharT)); __throw_exception_again; } return __result; |