Home
last modified time | relevance | path

Searched refs:NonCopyable (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/external/llvm-project/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp48 struct NonCopyable { struct
49 NonCopyable() {} in NonCopyable() function
51 NonCopyable(NonCopyable const&) = delete;
52 NonCopyable& operator=(NonCopyable const&) = delete;
58 int& operator()(NonCopyable&&) & { return data; } in operator ()()
59 int const& operator()(NonCopyable&&) const & { return data; } in operator ()()
60 int volatile& operator()(NonCopyable&&) volatile & { return data; } in operator ()()
61 int const volatile& operator()(NonCopyable&&) const volatile & { return data; } in operator ()()
63 int&& operator()(NonCopyable&&) && { return std::move(data); } in operator ()()
64 int const&& operator()(NonCopyable&&) const && { return std::move(data); } in operator ()()
[all …]
/external/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp46 struct NonCopyable { struct
47 NonCopyable() {} in NonCopyable() argument
49 NonCopyable(NonCopyable const&) = delete;
50 NonCopyable& operator=(NonCopyable const&) = delete;
56 int& operator()(NonCopyable&&) & { return data; } in operator ()()
57 int const& operator()(NonCopyable&&) const & { return data; } in operator ()()
58 int volatile& operator()(NonCopyable&&) volatile & { return data; } in operator ()()
59 int const volatile& operator()(NonCopyable&&) const volatile & { return data; } in operator ()()
61 int&& operator()(NonCopyable&&) && { return std::move(data); } in operator ()()
62 int const&& operator()(NonCopyable&&) const && { return std::move(data); } in operator ()()
[all …]
/external/parameter-framework/upstream/utility/
DNonCopyable.hpp46 class NonCopyable class
49 NonCopyable() = default;
50 NonCopyable(const NonCopyable &) = delete;
51 NonCopyable(NonCopyable &&) = delete;
52 NonCopyable &operator=(const NonCopyable &) = delete;
53 NonCopyable &operator=(NonCopyable &&) = delete;
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
Dp5-0x.cpp68 class NonCopyable { class
69 NonCopyable(const NonCopyable&);
72 class NonCopyableDerived : public NonCopyable {
78 NonCopyable &&nc0 = prvalue<NonCopyable>(); in test_direct_binding()
79 NonCopyable &&nc1 = prvalue<NonCopyableDerived>(); in test_direct_binding()
80 NonCopyable &&nc2 = xvalue<NonCopyable>(); in test_direct_binding()
81 NonCopyable &&nc3 = xvalue<NonCopyableDerived>(); in test_direct_binding()
82 const NonCopyable &nc4 = prvalue<NonCopyable>(); in test_direct_binding()
83 const NonCopyable &nc5 = prvalue<NonCopyableDerived>(); in test_direct_binding()
84 const NonCopyable &nc6 = xvalue<NonCopyable>(); in test_direct_binding()
[all …]
/external/llvm-project/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
Dp5-0x.cpp68 class NonCopyable { class
69 NonCopyable(const NonCopyable&);
72 class NonCopyableDerived : public NonCopyable {
78 NonCopyable &&nc0 = prvalue<NonCopyable>(); in test_direct_binding()
79 NonCopyable &&nc1 = prvalue<NonCopyableDerived>(); in test_direct_binding()
80 NonCopyable &&nc2 = xvalue<NonCopyable>(); in test_direct_binding()
81 NonCopyable &&nc3 = xvalue<NonCopyableDerived>(); in test_direct_binding()
82 const NonCopyable &nc4 = prvalue<NonCopyable>(); in test_direct_binding()
83 const NonCopyable &nc5 = prvalue<NonCopyableDerived>(); in test_direct_binding()
84 const NonCopyable &nc6 = xvalue<NonCopyable>(); in test_direct_binding()
[all …]
/external/pigweed/pw_unit_test/
Dframework_test.cc81 class NonCopyable { class
83 NonCopyable(int value) : value_(value) {} in NonCopyable() function in pw::__anonb8f06de10111::NonCopyable
85 NonCopyable(const NonCopyable&) = delete;
86 NonCopyable& operator=(const NonCopyable&) = delete;
88 bool operator==(const NonCopyable& rhs) const { return value_ == rhs.value_; } in operator ==()
89 bool operator!=(const NonCopyable& rhs) const { return value_ != rhs.value_; } in operator !=()
98 EXPECT_TRUE(NonCopyable(6)); in TEST()
99 EXPECT_FALSE(NonCopyable(-1)); in TEST()
101 const NonCopyable this_one(100); in TEST()
105 EXPECT_EQ(NonCopyable(5), NonCopyable(5)); in TEST()
[all …]
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Drv_pair_U_V.pass.cpp115 test_pair_rv<NonCopyable, NonCopyable, false>(); in main()
116 test_pair_rv<NonCopyable, NonCopyable&, false>(); in main()
117 test_pair_rv<NonCopyable, NonCopyable&&, false>(); in main()
118 test_pair_rv<NonCopyable, const NonCopyable&, false>(); in main()
119 test_pair_rv<NonCopyable, const NonCopyable&&, false>(); in main()
122 test_pair_rv<NonCopyable&, NonCopyable&>(); in main()
123 test_pair_rv<NonCopyable&, NonCopyable&&>(); in main()
124 test_pair_rv<NonCopyable&, NonCopyable const&, false>(); in main()
125 test_pair_rv<NonCopyable const&, NonCopyable&&>(); in main()
126 test_pair_rv<NonCopyable&&, NonCopyable&&>(); in main()
Dconst_pair_U_V.pass.cpp105 test_pair_const<NonCopyable, NonCopyable, false>(); in main()
106 test_pair_const<NonCopyable, NonCopyable&, false>(); in main()
107 test_pair_const<NonCopyable, NonCopyable&&, false>(); in main()
108 test_pair_const<NonCopyable, const NonCopyable&, false>(); in main()
109 test_pair_const<NonCopyable, const NonCopyable&&, false>(); in main()
113 test_pair_const<NonCopyable&, NonCopyable&>(); in main()
114 test_pair_const<NonCopyable&, NonCopyable&&>(); in main()
115 test_pair_const<NonCopyable&, NonCopyable const&, false>(); in main()
116 test_pair_const<NonCopyable const&, NonCopyable&&>(); in main()
117 test_pair_const<NonCopyable&&, NonCopyable&&, false>(); in main()
DU_V.pass.cpp72 test_sfinae<NonCopyable, NonCopyable&, false>(); in main()
73 test_sfinae<NonCopyable, NonCopyable&&, false>(); in main()
74 test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&, false>(); in main()
75 test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&&, false>(); in main()
Dspecial_member_generation_test.pass.cpp60 test<NonCopyable, false>(); in test_constructors_exist()
61 test<NonCopyable &, true>(); in test_constructors_exist()
62 test<NonCopyable &&, false, true>(); in test_constructors_exist()
108 test<NonCopyable, false>(); in test_assignment_operator_exists()
109 test<NonCopyable &, false>(); in test_assignment_operator_exists()
110 test<NonCopyable &&, false>(); in test_assignment_operator_exists()
/external/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Drv_pair_U_V.pass.cpp116 test_pair_rv<NonCopyable, NonCopyable, false>(); in main()
117 test_pair_rv<NonCopyable, NonCopyable&, false>(); in main()
118 test_pair_rv<NonCopyable, NonCopyable&&, false>(); in main()
119 test_pair_rv<NonCopyable, const NonCopyable&, false>(); in main()
120 test_pair_rv<NonCopyable, const NonCopyable&&, false>(); in main()
123 test_pair_rv<NonCopyable&, NonCopyable&>(); in main()
124 test_pair_rv<NonCopyable&, NonCopyable&&>(); in main()
125 test_pair_rv<NonCopyable&, NonCopyable const&, false>(); in main()
126 test_pair_rv<NonCopyable const&, NonCopyable&&>(); in main()
127 test_pair_rv<NonCopyable&&, NonCopyable&&>(); in main()
Dconst_pair_U_V.pass.cpp112 test_pair_const<NonCopyable, NonCopyable, false>(); in test()
113 test_pair_const<NonCopyable, NonCopyable&, false>(); in test()
114 test_pair_const<NonCopyable, NonCopyable&&, false>(); in test()
115 test_pair_const<NonCopyable, const NonCopyable&, false>(); in test()
116 test_pair_const<NonCopyable, const NonCopyable&&, false>(); in test()
120 test_pair_const<NonCopyable&, NonCopyable&>(); in test()
121 test_pair_const<NonCopyable&, NonCopyable&&>(); in test()
122 test_pair_const<NonCopyable&, NonCopyable const&, false>(); in test()
123 test_pair_const<NonCopyable const&, NonCopyable&&>(); in test()
124 test_pair_const<NonCopyable&&, NonCopyable&&, false>(); in test()
DU_V.pass.cpp73 test_sfinae<NonCopyable, NonCopyable&, false>(); in main()
74 test_sfinae<NonCopyable, NonCopyable&&, false>(); in main()
75 test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&, false>(); in main()
76 test_sfinae<ExplicitTypes::NonCopyable, ExplicitTypes::NonCopyable&&, false>(); in main()
Dspecial_member_generation_test.pass.cpp61 test<NonCopyable, false>(); in test_constructors_exist()
62 test<NonCopyable &, true>(); in test_constructors_exist()
63 test<NonCopyable &&, false, true>(); in test_constructors_exist()
109 test<NonCopyable, false>(); in test_assignment_operator_exists()
110 test<NonCopyable &, false>(); in test_assignment_operator_exists()
111 test<NonCopyable &&, false>(); in test_assignment_operator_exists()
/external/catch2/include/internal/
Dcatch_common.h36 class NonCopyable {
37 NonCopyable( NonCopyable const& ) = delete;
38 NonCopyable( NonCopyable && ) = delete;
39 NonCopyable& operator = ( NonCopyable const& ) = delete;
40 NonCopyable& operator = ( NonCopyable && ) = delete;
43 NonCopyable();
44 virtual ~NonCopyable();
/external/llvm-project/libcxx/test/std/utilities/meta/meta.rel/
Dis_convertible.pass.cpp54 class NonCopyable { class
55 NonCopyable(NonCopyable&);
240 static_assert((std::is_convertible<NonCopyable&, NonCopyable&>::value), ""); in main()
241 static_assert((std::is_convertible<NonCopyable&, const NonCopyable&>::value), ""); in main()
242 static_assert((std::is_convertible<NonCopyable&, const volatile NonCopyable&>::value), ""); in main()
243 static_assert((std::is_convertible<NonCopyable&, volatile NonCopyable&>::value), ""); in main()
244 static_assert((std::is_convertible<const NonCopyable&, const NonCopyable&>::value), ""); in main()
245 … static_assert((std::is_convertible<const NonCopyable&, const volatile NonCopyable&>::value), ""); in main()
246 …static_assert((std::is_convertible<volatile NonCopyable&, const volatile NonCopyable&>::value), ""… in main()
247 …static_assert((std::is_convertible<const volatile NonCopyable&, const volatile NonCopyable&>::valu… in main()
[all …]
/external/libcxx/test/std/utilities/meta/meta.rel/
Dis_convertible.pass.cpp55 class NonCopyable { class
56 NonCopyable(NonCopyable&);
245 static_assert((std::is_convertible<NonCopyable&, NonCopyable&>::value), ""); in main()
246 static_assert((std::is_convertible<NonCopyable&, const NonCopyable&>::value), ""); in main()
247 static_assert((std::is_convertible<NonCopyable&, const volatile NonCopyable&>::value), ""); in main()
248 static_assert((std::is_convertible<NonCopyable&, volatile NonCopyable&>::value), ""); in main()
249 static_assert((std::is_convertible<const NonCopyable&, const NonCopyable&>::value), ""); in main()
250 … static_assert((std::is_convertible<const NonCopyable&, const volatile NonCopyable&>::value), ""); in main()
251 …static_assert((std::is_convertible<volatile NonCopyable&, const volatile NonCopyable&>::value), ""… in main()
252 …static_assert((std::is_convertible<const volatile NonCopyable&, const volatile NonCopyable&>::valu… in main()
[all …]
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp15.cpp4 class NonCopyable { class
5 NonCopyable(const NonCopyable&);
8 void capture_by_ref(NonCopyable nc, NonCopyable &ncr) { in capture_by_ref()
/external/llvm-project/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp15.cpp4 class NonCopyable { class
5 NonCopyable(const NonCopyable&);
8 void capture_by_ref(NonCopyable nc, NonCopyable &ncr) { in capture_by_ref()
/external/webrtc/third_party/abseil-cpp/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() argument
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() argument
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]
/external/abseil-cpp/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() function
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() argument
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() function
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/functional/
Dbind_front_test.cc107 struct NonCopyable { struct
108 explicit NonCopyable(const std::string& s) : value(s) {} in NonCopyable() function
109 NonCopyable(const NonCopyable&) = delete;
110 NonCopyable& operator=(const NonCopyable&) = delete;
115 const std::string& GetNonCopyableValue(const NonCopyable& n) { return n.value; } in GetNonCopyableValue()
118 NonCopyable s("hello"); in TEST()
130 NonCopyable s("hello"); in TEST()
142 std::reference_wrapper<NonCopyable> n) { in GetNonCopyableValueByWrapper()
147 NonCopyable s("hello"); in TEST()
159 NonCopyable s("hello"); in TEST()
[all …]

12345678910>>...12