Go to the documentation of this file.00001
00002
00003 #ifndef _MOVE_ORDER_PROMOTION_H
00004 #define _MOVE_ORDER_PROMOTION_H
00005 #include "osl/move.h"
00006
00007 namespace osl
00008 {
00009 namespace move_order
00010 {
00014 struct Promotion
00015 {
00016 bool operator()(Move l, Move r) const
00017 {
00018 const int promotion_l = l.promoteMask();
00019 const int promotion_r = r.promoteMask();
00020
00021 return promotion_l > promotion_r;
00022 }
00023 };
00024 }
00025 }
00026
00027 #endif
00028
00029
00030
00031