diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 19:04:07 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 19:04:07 +0000 |
commit | 1ba9ca1de884a622eefcbe60586b6e1c0743d771 (patch) | |
tree | 926a5c55b0430c333ec876a831929183b8900216 /libstdc++-v3/include/debug | |
parent | 14511e3ad21013e92c6399b2bd2ec09a8263e33a (diff) | |
download | gcc-1ba9ca1de884a622eefcbe60586b6e1c0743d771.tar.gz |
2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config (_GLIBCXX_STD): New.
* src/list.cc: Use it.
* include/std/std_bitset.h: Same.
* include/bits/vector.tcc: Same.
* include/bits/stl_set.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_list.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/stl_bvector.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/deque.tcc: Same.
* include/bits/list.tcc: Same.
* include/debug/vector: Same.
* include/debug/set.h: Same.
* include/debug/multiset.h: Same.
* include/debug/multimap.h: Same.
* include/debug/map.h: Same.
* include/debug/list: Same.
* include/debug/deque: Same.
* include/debug/bitset: Same.
* include/debug/formatter.h (__gnu_debug): Remove using directive.
Add using declaration for std::type_info.
* include/debug/safe_iterator.h: Add using declaration for
std::iterator_traits and std::pair.
* src/debug_list.cc: New.
* src/Makefile.am: Add debug_list.cc.
* src/Makefile.in: Regenerate.
* config/linker-map.gnu: Add _List_node_base exports for std and
__gnu_norm.
* include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
idiom that other containers use.
* testsuite/23_containers/vector/bool/clear_allocator.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug')
-rw-r--r-- | libstdc++-v3/include/debug/bitset | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/deque | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/formatter.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/list | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/map.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/multimap.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/multiset.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/safe_iterator.h | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/set.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/vector | 6 |
10 files changed, 33 insertions, 29 deletions
diff --git a/libstdc++-v3/include/debug/bitset b/libstdc++-v3/include/debug/bitset index 1d8875aaa8a..2e2364ff930 100644 --- a/libstdc++-v3/include/debug/bitset +++ b/libstdc++-v3/include/debug/bitset @@ -1,6 +1,6 @@ // Debugging bitset implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -39,9 +39,10 @@ namespace __gnu_debug_def { template<size_t _Nb> class bitset - : public __gnu_norm::bitset<_Nb>, public __gnu_debug::_Safe_sequence_base + : public _GLIBCXX_STD::bitset<_Nb>, + public __gnu_debug::_Safe_sequence_base { - typedef __gnu_norm::bitset<_Nb> _Base; + typedef _GLIBCXX_STD::bitset<_Nb> _Base; typedef __gnu_debug::_Safe_sequence_base _Safe_base; public: diff --git a/libstdc++-v3/include/debug/deque b/libstdc++-v3/include/debug/deque index ed68b37a798..c39a49c0461 100644 --- a/libstdc++-v3/include/debug/deque +++ b/libstdc++-v3/include/debug/deque @@ -1,6 +1,6 @@ // Debugging deque implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -39,10 +39,10 @@ namespace __gnu_debug_def { template<typename _Tp, typename _Allocator = std::allocator<_Tp> > class deque - : public __gnu_norm::deque<_Tp, _Allocator>, - public __gnu_debug::_Safe_sequence<deque<_Tp, _Allocator> > + : public _GLIBCXX_STD::deque<_Tp, _Allocator>, + public __gnu_debug::_Safe_sequence<deque<_Tp, _Allocator> > { - typedef __gnu_norm::deque<_Tp, _Allocator> _Base; + typedef _GLIBCXX_STD::deque<_Tp, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<deque> _Safe_base; public: diff --git a/libstdc++-v3/include/debug/formatter.h b/libstdc++-v3/include/debug/formatter.h index 6ed00bd868e..7022fa70077 100644 --- a/libstdc++-v3/include/debug/formatter.h +++ b/libstdc++-v3/include/debug/formatter.h @@ -1,6 +1,6 @@ // Debug-mode error formatting implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -36,7 +36,7 @@ namespace __gnu_debug { - using namespace std; + using std::type_info; /** Determine if the two types are the same. */ template<typename _Type1, typename _Type2> diff --git a/libstdc++-v3/include/debug/list b/libstdc++-v3/include/debug/list index f9bb9f9435c..556c9d9acff 100644 --- a/libstdc++-v3/include/debug/list +++ b/libstdc++-v3/include/debug/list @@ -1,6 +1,6 @@ // Debugging list implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -40,10 +40,10 @@ namespace __gnu_debug_def { template<typename _Tp, typename _Allocator = std::allocator<_Tp> > class list - : public __gnu_norm::list<_Tp, _Allocator>, + : public _GLIBCXX_STD::list<_Tp, _Allocator>, public __gnu_debug::_Safe_sequence<list<_Tp, _Allocator> > { - typedef __gnu_norm::list<_Tp, _Allocator> _Base; + typedef _GLIBCXX_STD::list<_Tp, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<list> _Safe_base; public: @@ -76,7 +76,7 @@ namespace __gnu_debug_def template<class _InputIterator> list(_InputIterator __first, _InputIterator __last, const _Allocator& __a = _Allocator()) - : _Base(__gnu_debug::__check_valid_range(__first, __last), __last, __a) + : _Base(__gnu_debug::__check_valid_range(__first, __last), __last, __a) { } diff --git a/libstdc++-v3/include/debug/map.h b/libstdc++-v3/include/debug/map.h index 9470e667434..2a6794b31e0 100644 --- a/libstdc++-v3/include/debug/map.h +++ b/libstdc++-v3/include/debug/map.h @@ -1,6 +1,6 @@ // Debugging map implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -40,10 +40,10 @@ namespace __gnu_debug_def template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>, typename _Allocator = std::allocator<std::pair<const _Key, _Tp> > > class map - : public __gnu_norm::map<_Key, _Tp, _Compare, _Allocator>, + : public _GLIBCXX_STD::map<_Key, _Tp, _Compare, _Allocator>, public __gnu_debug::_Safe_sequence<map<_Key, _Tp, _Compare, _Allocator> > { - typedef __gnu_norm::map<_Key, _Tp, _Compare, _Allocator> _Base; + typedef _GLIBCXX_STD::map<_Key, _Tp, _Compare, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<map> _Safe_base; public: diff --git a/libstdc++-v3/include/debug/multimap.h b/libstdc++-v3/include/debug/multimap.h index 3772c31dc69..4de1e3b58f4 100644 --- a/libstdc++-v3/include/debug/multimap.h +++ b/libstdc++-v3/include/debug/multimap.h @@ -1,6 +1,6 @@ // Debugging multimap implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -40,10 +40,10 @@ namespace __gnu_debug_def template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>, typename _Allocator = std::allocator<std::pair<const _Key, _Tp> > > class multimap - : public __gnu_norm::multimap<_Key, _Tp, _Compare, _Allocator>, + : public _GLIBCXX_STD::multimap<_Key, _Tp, _Compare, _Allocator>, public __gnu_debug::_Safe_sequence<multimap<_Key,_Tp,_Compare,_Allocator> > { - typedef __gnu_norm::multimap<_Key, _Tp, _Compare, _Allocator> _Base; + typedef _GLIBCXX_STD::multimap<_Key, _Tp, _Compare, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<multimap> _Safe_base; public: diff --git a/libstdc++-v3/include/debug/multiset.h b/libstdc++-v3/include/debug/multiset.h index 19bc29a960a..92042fef68c 100644 --- a/libstdc++-v3/include/debug/multiset.h +++ b/libstdc++-v3/include/debug/multiset.h @@ -1,6 +1,6 @@ // Debugging multiset implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -40,10 +40,10 @@ namespace __gnu_debug_def template<typename _Key, typename _Compare = std::less<_Key>, typename _Allocator = std::allocator<_Key> > class multiset - : public __gnu_norm::multiset<_Key, _Compare, _Allocator>, + : public _GLIBCXX_STD::multiset<_Key, _Compare, _Allocator>, public __gnu_debug::_Safe_sequence<multiset<_Key, _Compare, _Allocator> > { - typedef __gnu_norm::multiset<_Key, _Compare, _Allocator> _Base; + typedef _GLIBCXX_STD::multiset<_Key, _Compare, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<multiset> _Safe_base; public: diff --git a/libstdc++-v3/include/debug/safe_iterator.h b/libstdc++-v3/include/debug/safe_iterator.h index 72ba3b52f10..7482d6caa65 100644 --- a/libstdc++-v3/include/debug/safe_iterator.h +++ b/libstdc++-v3/include/debug/safe_iterator.h @@ -1,6 +1,6 @@ // Safe iterator implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -38,6 +38,9 @@ namespace __gnu_debug { + using std::iterator_traits; + using std::pair; + /** Iterators that derive from _Safe_iterator_base but that aren't * _Safe_iterators can be determined singular or non-singular via * _Safe_iterator_base. diff --git a/libstdc++-v3/include/debug/set.h b/libstdc++-v3/include/debug/set.h index b9200adf233..8656cb0aff6 100644 --- a/libstdc++-v3/include/debug/set.h +++ b/libstdc++-v3/include/debug/set.h @@ -1,6 +1,6 @@ // Debugging set implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -40,10 +40,10 @@ namespace __gnu_debug_def template<typename _Key, typename _Compare = std::less<_Key>, typename _Allocator = std::allocator<_Key> > class set - : public __gnu_norm::set<_Key,_Compare,_Allocator>, + : public _GLIBCXX_STD::set<_Key,_Compare,_Allocator>, public __gnu_debug::_Safe_sequence<set<_Key, _Compare, _Allocator> > { - typedef __gnu_norm::set<_Key,_Compare,_Allocator> _Base; + typedef _GLIBCXX_STD::set<_Key,_Compare,_Allocator> _Base; typedef __gnu_debug::_Safe_sequence<set> _Safe_base; public: diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index f7fa3e8f092..0cc2997b975 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -1,6 +1,6 @@ // Debugging vector implementation -*- C++ -*- -// Copyright (C) 2003 +// Copyright (C) 2003, 2004 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -41,10 +41,10 @@ namespace __gnu_debug_def template<typename _Tp, typename _Allocator = std::allocator<_Tp> > class vector - : public __gnu_norm::vector<_Tp, _Allocator>, + : public _GLIBCXX_STD::vector<_Tp, _Allocator>, public __gnu_debug::_Safe_sequence<vector<_Tp, _Allocator> > { - typedef __gnu_norm::vector<_Tp, _Allocator> _Base; + typedef _GLIBCXX_STD::vector<_Tp, _Allocator> _Base; typedef __gnu_debug::_Safe_sequence<vector> _Safe_base; typedef typename _Base::const_iterator _Base_const_iterator; |