Searched defs:MoveOnlyInt (Results 1 – 7 of 7) sorted by relevance
22 struct MoveOnlyInt { struct23 MoveOnlyInt() {} in MoveOnlyInt() function24 explicit MoveOnlyInt(int value) : value(value) {} in MoveOnlyInt() argument27 MoveOnlyInt(MoveOnlyInt&& other) : value(other.value) {} in MoveOnlyInt() function28 MoveOnlyInt& operator=(MoveOnlyInt&& other) { in operator =()33 int value = kDefaultMoveOnlyIntValue;
206 struct MoveOnlyInt { struct207 MoveOnlyInt(int i) : fInt(i) {} in MoveOnlyInt() argument208 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in MoveOnlyInt() function209 bool operator==(int i) const { return fInt == i; } in operator ==()210 int fInt;
17 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
15 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
25 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
442 const std::pair<MoveOnlyInt, MoveOnlyInt>& e) { in TEST()
68 struct MoveOnlyInt { struct69 MoveOnlyInt(int value) : value(value) {} in MoveOnlyInt() argument70 MoveOnlyInt(MoveOnlyInt&& other) : value(std::exchange(other.value, 0)) {} in MoveOnlyInt() argument72 MoveOnlyInt& operator=(MoveOnlyInt&& other) { in operator =()77 int value = 0;