brintos

brintos / llvm-project-archived public Read only

0
0
Text · 382 B · cbb57cc Raw
20 lines · c
1struct IntWrapper {2  int value;3 4  IntWrapper getIncremented() const { return {value + 1}; }5 6  IntWrapper operator+(const IntWrapper& RHS) const { return {value + RHS.value}; }7};8 9struct Outer {10  struct Inner {11    int value;12 13    Inner getDecremented() const { return {value - 1}; }14 15    bool operator==(const Inner& RHS) const {16      return value == RHS.value;17    }18  };19};20