This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Update backward/algo.h


Hi,

this, rather harmless patch IMHO, updates backward/algo.h in the light of the
recent changes to include/bits/stl_algo.h and the new include/ext/algorithm.
Tested i686-pc-linux-gnu.

Cheers,
Paolo.

//////////

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

        * include/backward/algo.h:  Include <ext/algorithm>,
        tweak using declarations.

diff -prN libstdc++-v3-orig/include/backward/algo.h
libstdc++-v3/include/backward/algo.h
*** libstdc++-v3-orig/include/backward/algo.h Wed Jun 27 19:09:52 2001
--- libstdc++-v3/include/backward/algo.h Sun Dec 30 09:00:49 2001
***************
*** 62,67 ****
--- 62,68 ----
  #include "iterator.h"
  #include <bits/stl_algo.h>
  #include <bits/stl_numeric.h>
+ #include <ext/algorithm>

  // Names from <stl_algo.h>
  using std::for_each;
*************** using std::reverse_copy;
*** 91,98 ****
  using std::rotate;
  using std::rotate_copy;
  using std::random_shuffle;
- using std::random_sample;
- using std::random_sample_n;
  using std::partition;
  using std::stable_partition;
  using std::sort;
--- 92,97 ----
*************** using std::next_permutation;
*** 117,124 ****
  using std::prev_permutation;
  using std::find_first_of;
  using std::find_end;
- using std::is_sorted;
- using std::is_heap;

  // Names from stl_heap.h
  using std::push_heap;
--- 116,121 ----
*************** using std::partial_sum;
*** 133,138 ****
--- 130,141 ----
  using std::adjacent_difference;
  using std::power;
  using std::iota;
+
+ // Names from ext/algorithm
+ using __gnu_cxx::random_sample;
+ using __gnu_cxx::random_sample_n;
+ using __gnu_cxx::is_sorted;
+ using __gnu_cxx::is_heap;

  #endif /* _CPP_BACKWARD_ALGO_H */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]