template<typename T>
int foo(T t1) {
return int(t1);
}
namespace A {
struct C {};
template <typename T> int f(T) { return 4; }
template <typename T> int g(T) { return 4; }
}
int f(int) { return 1; }
template <class T> int h(T x) { return x; }
int h(double d) { return 5; }
template <class... Us> int var(Us... pargs) { return 10; }
namespace A {
template <typename T> bool operator<(const T &, const T &) { return true; }
template <typename T> bool operator>(const T &, const T &) { return true; }
template <typename T> bool operator<<(const T &, const T &) { return true; }
template <typename T> bool operator>>(const T &, const T &) { return true; }
template <typename T> bool operator==(const T &, const T &) { return true; }
struct B {};
}
struct D {};
bool operator<(const D &, const D &) { return true; }
bool operator>(const D &, const D &) { return true; }
bool operator>>(const D &, const D &) { return true; }
bool operator<<(const D &, const D &) { return true; }
bool operator==(const D &, const D &) { return true; }
int main() {
A::B b1;
A::B b2;
D d1;
D d2;
bool result_b = b1 < b2 && b1 << b2 && b1 == b2 && b1 > b2 && b1 >> b2;
bool result_c = d1 < d2 && d1 << d2 && d1 == d2 && d1 > d2 && d1 >> d2;
return foo(42) + result_b + result_c + f(A::C{}) + g(A::C{}) + h(10) + h(1.) +
var(1) + var(1, 2);
}