Home
last modified time | relevance | path

Searched refs:move_only (Results 1 – 19 of 19) sorted by relevance

/external/libcxx/test/std/utilities/utility/forward/
Dmove.fail.cpp17 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()
Dmove.pass.cpp20 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/
Dmove.fail.cpp20 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()
Dmove.pass.cpp17 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/
Dcopy.move_only.verify.cpp15 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/
Dconstruct.pass.cpp39 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/
Dconstruct.cxx2a.pass.cpp45 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/
Dimplicitly-deleted.cpp7 class move_only { move_only(const move_only&) = delete; move_only(move_only&&); }; class
9 move_only il;
/external/clang/test/PCH/
Dimplicitly-deleted.cpp3 class move_only { move_only(const move_only&) = delete; move_only(move_only&&); }; class
5 move_only il;
/external/libchrome/mojo/public/cpp/base/
Dshared_memory.typemap18 …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…
Dvalues.typemap13 "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]",
Dbig_buffer.typemap12 type_mappings = [ "mojo_base.mojom.BigBuffer=mojo_base::BigBuffer[move_only]" ]
Dfile.typemap14 [ "mojo_base.mojom.File=base::File[move_only,nullable_is_same_type]" ]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dstruct_with_traits.typemap24 "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_…
Dtest_native_types_chromium.typemap20 "mojo.test.PickledStruct=mojo::test::PickledStructChromium[move_only]",
22 ….test.TestNativeStructWithAttachmentsMojom=mojo::test::TestNativeStructWithAttachments[move_only]",
Dtest_native_types_blink.typemap16 "mojo.test.PickledStruct=mojo::test::PickledStructBlink[move_only]",
/external/libchrome/base/
Dno_destructor_unittest.cc52 MoveOnly move_only; in TEST() local
55 copy_only, std::move(move_only)); in TEST()
/external/python/pybind11/tests/
Dtest_copy_move.py56 assert m.move_only(10) == 10 # 1 move, c_m
/external/libchrome/mojo/public/cpp/bindings/
DREADME.md1376 * `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.