All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
promotion.h
Go to the documentation of this file.
1 /* promotion.h
2  */
3 #ifndef _MOVE_ORDER_PROMOTION_H
4 #define _MOVE_ORDER_PROMOTION_H
5 #include "osl/move.h"
6 
7 namespace osl
8 {
9  namespace move_order
10  {
14  struct Promotion
15  {
16  bool operator()(Move l, Move r) const
17  {
18  const int promotion_l = l.promoteMask();
19  const int promotion_r = r.promoteMask();
20 
21  return promotion_l > promotion_r;
22  }
23  };
24  } // namespace move_order
25 } // namespace osl
26 
27 #endif /* _MOVE_ORDER_PROMOTION_H */
28 // ;;; Local Variables:
29 // ;;; mode:c++
30 // ;;; c-basic-offset:2
31 // ;;; End: