| 96 | struct ExtValueOperatorLte { |
| 97 | static const char* name; |
| 98 | static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) { |
| 99 | DataValue max(element); |
| 100 | return any_predicate(unencoded_path, ref(new RangePredicate(DataValue::firstOfType(max), true, max, true))); |
| 101 | } |
| 102 | }; |
| 103 | REGISTER_VALUE_OPERATOR(ExtValueOperatorLte, "$lte"); |
| 104 |
nothing calls this directly
no test coverage detected