Home
last modified time | relevance | path

Searched defs:MoveOnlyInt (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/api/
Drtc_error_unittest.cc22 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/
DTArrayTest.cpp239 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/
Dtest_copy_move.cpp37 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/
Dmove_only_int.h17 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
/external/cronet/base/test/
Dmove_only_int.h15 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
/external/webrtc/rtc_base/containers/
Dmove_only_int.h25 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
Dflat_map_unittest.cc442 const std::pair<MoveOnlyInt, MoveOnlyInt>& e) { in TEST()
/external/cronet/base/ranges/
Dalgorithm_unittest.cc68 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;