All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moveSorter.h
Go to the documentation of this file.
1 #ifndef _MOVE_ORDER_MOVESORTER_H
2 #define _MOVE_ORDER_MOVESORTER_H
3 
5 #include <algorithm>
6 
7 namespace osl
8 {
9  namespace move_order
10  {
11  struct MoveSorter
12  {
13  template <class Compare>
14  static void sort(MoveVector& moves, const Compare& comp)
15  {
16  std::sort(moves.begin(), moves.end(), comp);
17  }
18  };
19  } // namespace move_order
20 } // namespace osl
21 
22 #endif
23 // ;;; Local Variables:
24 // ;;; mode:c++
25 // ;;; c-basic-offset:2
26 // ;;; End: