Searched defs:MoveOnlyInt (Results 1 – 8 of 8) sorted by relevance
/external/webrtc/api/ |
D | rtc_error_unittest.cc | 22 struct MoveOnlyInt { struct 23 MoveOnlyInt() {} in MoveOnlyInt() function 24 explicit MoveOnlyInt(int value) : value(value) {} in MoveOnlyInt() function 27 MoveOnlyInt(MoveOnlyInt&& other) : value(other.value) {} in MoveOnlyInt() function 28 MoveOnlyInt& operator=(MoveOnlyInt&& other) { in operator =() 33 int value = kDefaultMoveOnlyIntValue;
|
/external/skia/tests/ |
D | TArrayTest.cpp | 239 struct MoveOnlyInt { in test_swap() struct 240 MoveOnlyInt(int i) : fInt(i) {} in test_swap() function 241 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in test_swap() argument 242 bool operator==(int i) { return fInt == i; } in test_swap() 243 int fInt; in test_swap()
|
/external/python/pybind11/tests/ |
D | test_copy_move.cpp | 37 class MoveOnlyInt { class 39 MoveOnlyInt() { print_default_created(this); } in MoveOnlyInt() function in MoveOnlyInt 40 MoveOnlyInt(int v) : value{std::move(v)} { print_created(this, value); } in MoveOnlyInt() function in MoveOnlyInt 41 MoveOnlyInt(MoveOnlyInt &&m) { print_move_created(this, m.value); std::swap(value, m.value); } in MoveOnlyInt() function in MoveOnlyInt 131 m.def("move_pair", [](std::pair<MoveOnlyInt, MoveOrCopyInt> p) { in PYBIND11_NAMESPACE_END() 134 m.def("move_tuple", [](std::tuple<MoveOnlyInt, MoveOrCopyInt, MoveOnlyInt> t) { in PYBIND11_NAMESPACE_END() 140 ….def("move_copy_nested", [](std::pair<MoveOnlyInt, std::pair<std::tuple<MoveOrCopyInt, CopyOnlyInt… in PYBIND11_NAMESPACE_END() 171 …m.def("move_optional_tuple", [](std::optional<std::tuple<MoveOrCopyInt, MoveOnlyInt, CopyOnlyInt>>… in PYBIND11_NAMESPACE_END() argument
|
/external/libchrome/base/test/ |
D | move_only_int.h | 17 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
|
/external/cronet/base/test/ |
D | move_only_int.h | 15 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
|
/external/webrtc/rtc_base/containers/ |
D | move_only_int.h | 25 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
|
D | flat_map_unittest.cc | 442 const std::pair<MoveOnlyInt, MoveOnlyInt>& e) { in TEST()
|
/external/cronet/base/ranges/ |
D | algorithm_unittest.cc | 68 struct MoveOnlyInt { struct 69 MoveOnlyInt(int value) : value(value) {} in MoveOnlyInt() argument 70 MoveOnlyInt(MoveOnlyInt&& other) : value(std::exchange(other.value, 0)) {} in MoveOnlyInt() argument 72 MoveOnlyInt& operator=(MoveOnlyInt&& other) { in operator =() 77 int value = 0;
|