+int MathedLookupBOP(short id)
+{
+ static int const bopCount =
+ sizeof(binary_op_table) / sizeof(binary_op_pair);
+ static bool issorted = false;
+
+ if (!issorted) {
+ sort(binary_op_table, binary_op_table + bopCount, compara());
+ issorted = true;
+ }
+
+ binary_op_pair * res = lower_bound(binary_op_table,
+ binary_op_table + bopCount,
+ id, compara());
+ if (res != binary_op_table + bopCount && res->id == id)
+ return res->isrel;
+ else
+ return LMB_NONE;