Searched defs:MoveOnlyInt (Results 1 – 9 of 9) 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;
220 struct MoveOnlyInt { struct221 MoveOnlyInt(int i) : fInt(i) {} in MoveOnlyInt() function222 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in MoveOnlyInt() function223 bool operator==(int i) const { return fInt == i; } in operator ==()224 int fInt;
68 struct MoveOnlyInt { struct69 MoveOnlyInt(int value) : value(value) {} in MoveOnlyInt() function70 MoveOnlyInt(MoveOnlyInt&& other) : value(std::exchange(other.value, 0)) {} in MoveOnlyInt() argument72 MoveOnlyInt& operator=(MoveOnlyInt&& other) { in operator =()77 int value = 0;
20 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
17 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()
15 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function