moveSorter.h
Go to the documentation of this file.
00001 #ifndef _MOVE_ORDER_MOVESORTER_H
00002 #define _MOVE_ORDER_MOVESORTER_H
00003 
00004 #include "osl/container/moveVector.h"
00005 #include <algorithm>
00006 
00007 namespace osl
00008 {
00009   namespace move_order
00010   {
00011     struct MoveSorter
00012     {
00013       template <class Compare>
00014       static void sort(MoveVector& moves, const Compare& comp)
00015       {
00016         std::sort(moves.begin(), moves.end(), comp);
00017       }
00018     };
00019   } // namespace move_order
00020 } // namespace osl
00021 
00022 #endif 
00023 // ;;; Local Variables:
00024 // ;;; mode:c++
00025 // ;;; c-basic-offset:2
00026 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines