Home | History | Annotate | Download | only in temp.friend

Lines Matching defs:Num

4 template <typename T> struct Num {
8 Num(T value) : value_(value) {}
15 friend Num operator*(const Num &a, const Rep &n) {
16 Num x = 0;
23 friend Num operator+(const Num &a, const Num &b) {
27 Num& operator+=(const Num& b) {
46 Num<int> left = -1;
47 Num<int> right = 1;
48 Num<int> result = left + right;
53 Num<int> x = 3;
54 Num<int>::Rep<char> n = (char) 10;
55 Num<int> result = x * n;