36 #include <boost/utility.hpp>
42 class OrderedSorter :
public std::binary_function<unsigned long, unsigned long, bool> {
45 bool operator() (
unsigned long a,
unsigned long b)
const {
84 template <
class InputIterator>
85 BaseSorter(
unsigned int size, InputIterator begin, InputIterator end)
97 template <
class InputIterator>
98 static void fillOrder(InputIterator begin, InputIterator end, std::vector<unsigned long>& order) {
102 for (it = begin; it != end; ++it) {
120 template <
class InputIterator>
121 static std::vector<unsigned long>
createOrder(
unsigned int size, InputIterator begin, InputIterator end) {
122 std::vector<unsigned long> order(size,size);
130 #endif // -- BASESORTER_H