/external/libcxx/test/std/utilities/utility/forward/ |
D | move.fail.cpp | 17 struct move_only { struct 18 move_only() {} in move_only() argument 19 move_only(move_only&&) = default; 20 move_only& operator=(move_only&&) = default; 23 move_only source() {return move_only();} in source() 24 const move_only csource() {return move_only();} in csource() 26 void test(move_only) {} in test() argument 30 move_only a; in main() 31 const move_only ca = move_only(); in main()
|
D | move.pass.cpp | 20 class move_only class 22 move_only(const move_only&); 23 move_only& operator=(const move_only&); 25 move_only(move_only&&) {} in move_only() argument 26 move_only& operator=(move_only&&) {return *this;} in operator =() argument 28 move_only() {} in move_only() function in move_only 31 move_only source() {return move_only();} in source() 32 const move_only csource() {return move_only();} in csource() 34 void test(move_only) {} in test() argument 102 move_only mo; in main()
|
/external/llvm-project/libcxx/test/std/utilities/utility/forward/ |
D | move.fail.cpp | 20 struct move_only { struct 21 move_only() {} in move_only() argument 22 move_only(move_only&&) = default; 23 move_only& operator=(move_only&&) = default; 26 move_only source() {return move_only();} in source() 27 const move_only csource() {return move_only();} in csource() 29 void test(move_only) {} in test() argument 33 const move_only ca = move_only(); in main()
|
D | move.pass.cpp | 17 class move_only class 19 move_only(const move_only&); 20 move_only& operator=(const move_only&); 22 move_only(move_only&&) {} in move_only() function in move_only 23 move_only& operator=(move_only&&) {return *this;} in operator =() argument 25 move_only() {} in move_only() function in move_only 28 move_only source() {return move_only();} in source() 29 const move_only csource() {return move_only();} in csource() 31 void test(move_only) {} in test() argument 96 move_only mo; in main()
|
/external/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/ |
D | copy.move_only.verify.cpp | 15 struct move_only struct 17 move_only() = default; 18 move_only(move_only&&) = default; 19 move_only& operator=(move_only&&) = default; 24 std::vector<move_only> v; in main() 25 …std::vector<move_only> copy = v; // expected-error-re@memory:* {{{{(no matching function for call … in main()
|
/external/libcxx/test/std/utilities/memory/default.allocator/allocator.members/ |
D | construct.pass.cpp | 39 class move_only class 41 move_only(const move_only&) = delete; 42 move_only& operator=(const move_only&)= delete; 45 move_only(move_only&&) {++move_only_constructed;} in move_only() function in move_only 46 move_only& operator=(move_only&&) {return *this;} in operator =() argument 48 move_only() {++move_only_constructed;} in move_only() function in move_only 49 ~move_only() {--move_only_constructed;} in ~move_only() 110 std::allocator<move_only> a; in main() 115 move_only* ap = a.allocate(3); in main() 129 a.construct(ap, move_only()); in main()
|
/external/llvm-project/libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/ |
D | construct.cxx2a.pass.cpp | 45 class move_only class 47 move_only(const move_only&) = delete; 48 move_only& operator=(const move_only&)= delete; 51 move_only(move_only&&) {++move_only_constructed;} in move_only() argument 52 move_only& operator=(move_only&&) {return *this;} in operator =() argument 54 move_only() {++move_only_constructed;} in move_only() function in move_only 55 ~move_only() {--move_only_constructed;} in ~move_only() 117 std::allocator<move_only> a; in main() 122 move_only* ap = a.allocate(3); in main() 136 a.construct(ap, move_only()); in main()
|
/external/llvm-project/clang/test/PCH/ |
D | implicitly-deleted.cpp | 7 class move_only { move_only(const move_only&) = delete; move_only(move_only&&); }; class 9 move_only il;
|
/external/clang/test/PCH/ |
D | implicitly-deleted.cpp | 3 class move_only { move_only(const move_only&) = delete; move_only(move_only&&); }; class 5 move_only il;
|
/external/libchrome/mojo/public/cpp/base/ |
D | shared_memory.typemap | 18 …tformSharedMemoryHandle=base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle[move_only]", 19 "mojo_base.mojom.PlatformSharedMemoryRegion=base::subtle::PlatformSharedMemoryRegion[move_only]", 21 …"mojo_base.mojom.ReadOnlySharedMemoryRegion=base::ReadOnlySharedMemoryRegion[move_only,nullable_is… 22 …"mojo_base.mojom.UnsafeSharedMemoryRegion=base::UnsafeSharedMemoryRegion[move_only,nullable_is_sam… 23 …"mojo_base.mojom.WritableSharedMemoryRegion=base::WritableSharedMemoryRegion[move_only,nullable_is…
|
D | values.typemap | 13 "mojo_base.mojom.Value=base::Value[move_only]", 14 "mojo_base.mojom.DictionaryValue=base::Value[move_only]", 15 "mojo_base.mojom.ListValue=base::Value[move_only]",
|
D | big_buffer.typemap | 12 type_mappings = [ "mojo_base.mojom.BigBuffer=mojo_base::BigBuffer[move_only]" ]
|
D | file.typemap | 14 [ "mojo_base.mojom.File=base::File[move_only,nullable_is_same_type]" ]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | struct_with_traits.typemap | 24 "mojo.test.MoveOnlyStructWithTraits=mojo::test::MoveOnlyStructWithTraitsImpl[move_only]", 25 "mojo.test.StructWithTraitsForUniquePtr=std::unique_ptr<int>[move_only,nullable_is_same_type]", 26 …"mojo.test.UnionWithTraits=std::unique_ptr<mojo::test::UnionWithTraitsBase>[move_only,nullable_is_…
|
D | test_native_types_chromium.typemap | 20 "mojo.test.PickledStruct=mojo::test::PickledStructChromium[move_only]", 22 ….test.TestNativeStructWithAttachmentsMojom=mojo::test::TestNativeStructWithAttachments[move_only]",
|
D | test_native_types_blink.typemap | 16 "mojo.test.PickledStruct=mojo::test::PickledStructBlink[move_only]",
|
/external/libchrome/base/ |
D | no_destructor_unittest.cc | 52 MoveOnly move_only; in TEST() local 55 copy_only, std::move(move_only)); in TEST()
|
/external/python/pybind11/tests/ |
D | test_copy_move.py | 56 assert m.move_only(10) == 10 # 1 move, c_m
|
/external/libchrome/mojo/public/cpp/bindings/ |
D | README.md | 1376 * `move_only`: The `CppType` is move-only and should be passed by value 1377 in any generated method signatures. Note that `move_only` is transitive, 1381 value without moving them. Unlike `move_only`, this is not transitive.
|