Lines Matching defs:lhs
513 bool operator==(const Value& lhs, const Value& rhs) {
514 if (lhs.type_ != rhs.type_)
517 switch (lhs.type_) {
521 return lhs.bool_value_ == rhs.bool_value_;
523 return lhs.int_value_ == rhs.int_value_;
525 return lhs.string_value_ == rhs.string_value_;
527 return lhs.binary_value_ == rhs.binary_value_;
531 if (lhs.dict_.size() != rhs.dict_.size())
534 std::begin(lhs.dict_), std::end(lhs.dict_), std::begin(rhs.dict_),
539 return lhs.list_ == rhs.list_;
546 bool operator!=(const Value& lhs, const Value& rhs) {
547 return !(lhs == rhs);
550 bool operator<(const Value& lhs, const Value& rhs) {
551 if (lhs.type_ != rhs.type_)
552 return lhs.type_ < rhs.type_;
554 switch (lhs.type_) {
558 return lhs.bool_value_ < rhs.bool_value_;
560 return lhs.int_value_ < rhs.int_value_;
562 return lhs.string_value_ < rhs.string_value_;
564 return lhs.binary_value_ < rhs.binary_value_;
569 std::begin(lhs.dict_), std::end(lhs.dict_), std::begin(rhs.dict_),
576 return lhs.list_ < rhs.list_;
583 bool operator>(const Value& lhs, const Value& rhs) {
584 return rhs < lhs;
587 bool operator<=(const Value& lhs, const Value& rhs) {
588 return !(rhs < lhs);
591 bool operator>=(const Value& lhs, const Value& rhs) {
592 return !(lhs < rhs);