algo.h: Add two more using declarations.

2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

	* include/backward/algo.h:  Add two more using declarations.
	* include/backward/iterator.h:  Include <ext/iterator>,
	add using declaration.
	* include/ext/algorithm:  Add #pragma GCC system_header.

From-SVN: r48429
This commit is contained in:
Paolo Carlini 2001-12-31 19:03:47 +01:00 committed by Paolo Carlini
parent 3d90ff9352
commit 36955a954f
4 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Add two more using declarations.
* include/backward/iterator.h: Include <ext/iterator>,
add using declaration.
* include/ext/algorithm: Add #pragma GCC system_header.
2001-12-31 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_bvector.h: Change calls to 3-argument distance()

View File

@ -135,7 +135,9 @@ using std::iota;
using __gnu_cxx::random_sample;
using __gnu_cxx::random_sample_n;
using __gnu_cxx::is_sorted;
using __gnu_cxx::is_heap;
using __gnu_cxx::is_heap;
using __gnu_cxx::count; // Extension returning void
using __gnu_cxx::count_if; // Extension returning void
#endif /* _CPP_BACKWARD_ALGO_H */

View File

@ -36,6 +36,8 @@
#include <bits/stl_construct.h>
#include <bits/stl_raw_storage_iter.h>
#include <ext/iterator> // For 3-parameter distance extension
// Names from stl_iterator.h
using std::input_iterator_tag;
using std::output_iterator_tag;
@ -112,7 +114,8 @@ template<class _Iter>
value_type(const _Iter& __i)
{ return static_cast<typename iterator_traits<_Iter>::value_type*>(0); }
using std::distance;
using std::distance;
using __gnu_cxx::distance; // 3-parameter extension
using std::advance;
using std::insert_iterator;

View File

@ -56,6 +56,7 @@
#ifndef _EXT_ALGORITHM
#define _EXT_ALGORITHM
#pragma GCC system_header
#include <bits/std_algorithm.h>
namespace __gnu_cxx