blob: 46156b19f411e7f9cb4af77072d5e59171ca1549 [file]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "rs_bindings_from_cc/test/struct/operators/operators.h"
bool OperandForOutOfLineDefinition::operator==(
const OperandForOutOfLineDefinition& other) const {
return (i % 10) == (other.i % 10);
}
bool OperandForOutOfLineDefinition::operator<(
const OperandForOutOfLineDefinition& other) const {
return (i % 10) < (other.i % 10);
}
bool operator==(const OperandForFreeFunc& lhs, const OperandForFreeFunc& rhs) {
return (lhs.i % 10) == (rhs.i % 10);
}
bool operator<(const OperandForFreeFunc& lhs, const OperandForFreeFunc& rhs) {
return (lhs.i % 10) < (rhs.i % 10);
}
bool operator==(const OperandByRef& lhs, const OperandByRef& rhs) {
return (lhs.i % 10) == (rhs.i % 10);
}
bool operator<(const OperandByRef& lhs, const OperandByRef& rhs) {
return (lhs.i % 10) < (rhs.i % 10);
}
bool operator==(OperandByValue lhs, OperandByValue rhs) {
return (lhs.i % 10) == (rhs.i % 10);
}
bool operator<(OperandByValue lhs, OperandByValue rhs) {
return (lhs.i % 10) < (rhs.i % 10);
}
bool operator==(const OperandByRefAndValue& lhs, OperandByRefAndValue rhs) {
return (lhs.i % 10) == (rhs.i % 10);
}
bool operator<(const OperandByRefAndValue& lhs, OperandByRefAndValue rhs) {
return (lhs.i % 10) < (rhs.i % 10);
}
bool operator==(OperandByValueAndRef lhs, const OperandByValueAndRef& rhs) {
return (lhs.i % 10) == (rhs.i % 10);
}
bool operator<(OperandByValueAndRef lhs, const OperandByValueAndRef& rhs) {
return (lhs.i % 10) < (rhs.i % 10);
}
namespace test_namespace_bindings {
// bool operator==(const OperandForFreeFuncInDifferentNamespace& lhs,
// const OperandForFreeFuncInDifferentNamespace& rhs) {
// return (lhs.i % 10) == (rhs.i % 10);
// }
} // namespace test_namespace_bindings