Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
move_order
moveSorter.h
Go to the documentation of this file.
1
#ifndef _MOVE_ORDER_MOVESORTER_H
2
#define _MOVE_ORDER_MOVESORTER_H
3
4
#include "
osl/container/moveVector.h
"
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:
Generated on Sun Jul 21 2013 13:37:25 by
1.8.4