All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
evalCompareLarger.h
Go to the documentation of this file.
1 /* evalCompareLarger.h
2  */
3 #ifndef _EVAL_COMPARE_LARGER_H
4 #define _EVAL_COMPARE_LARGER_H
5 
6 #include "osl/eval/evalTraits.h"
7 
8 namespace osl
9 {
10  namespace eval
11  {
15  template <Player P> struct EvalCompareLarger
16  {
17  bool operator()(int l, int r) const
18  {
19  return EvalTraits<P>::betterThan(l, r);
20  }
21  };
22 
27  {
28  const Player player;
30  {
31  }
32  bool operator()(int l, int r) const
33  {
34  return betterThan(player, l, r);
35  }
36  };
37  } // namespace eval
38 } // namespace osl
39 
40 #endif /* _EVAL_COMPARE_LARGER_H */
41 // ;;; Local Variables:
42 // ;;; mode:c++
43 // ;;; c-basic-offset:2
44 // ;;; End: