Home
last modified time | relevance | path

Searched refs:NonMovable (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.nonprop.cache/
H A Demplace_from.pass.cpp27 struct NonMovable { struct
29 NonMovable() = default; argument
30 constexpr explicit NonMovable(int v) : value(v) { } in NonMovable() function
31 NonMovable(NonMovable&&) = delete;
32 NonMovable& operator=(NonMovable&&) = delete;
64 using Cache = std::ranges::__non_propagating_cache<NonMovable>; in test()
66 NonMovable& result = cache.__emplace_from([] { return NonMovable(3); }); in test()
H A Demplace.pass.cpp27 struct NonMovable { struct
29 NonMovable() = default; argument
30 constexpr explicit NonMovable(int v) : value(v) { } in NonMovable() argument
31 NonMovable(NonMovable&&) = delete;
32 NonMovable& operator=(NonMovable&&) = delete;
82 using Cache = std::ranges::__non_propagating_cache<NonMovable>; in test()
84 NonMovable& result = cache.__emplace(); in test()
/llvm-project-15.0.7/libcxx/test/support/type_classification/
H A Dmoveconstructible.h62 struct NonMovable { struct
63 NonMovable() = default;
64 NonMovable(NonMovable&&) = delete;
65 NonMovable& operator=(NonMovable&&) = delete; argument
68 struct DerivedFromNonMovable : NonMovable {};
71 NonMovable X;
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.monadic/
H A Dor_else.pass.cpp20 struct NonMovable { struct
21 NonMovable() = default;
22 NonMovable(NonMovable&&) = delete;
37 static_assert(!has_or_else<std::optional<NonMovable>&, decltype(return_optional<NonMovable>)>);
38 static_assert(!has_or_else<std::optional<NonMovable>&&, decltype(return_optional<NonMovable>)>);
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/
H A Dranges.count_if.pass.cpp231 struct NonMovable { in test() struct
232 NonMovable(const NonMovable&) = delete; in test()
233 NonMovable(NonMovable&&) = delete; in test()
234 constexpr NonMovable(int i_) : i(i_) {} in test() function
237 bool operator==(const NonMovable&) const = default; in test()
240 NonMovable a[] = {9, 8, 4, 3}; in test()
241 …auto ret = std::ranges::count_if(a, a + 4, [](const NonMovable& i) { return i == NonMovable(8); }); in test()
245 NonMovable a[] = {9, 8, 4, 3}; in test()
246 auto ret = std::ranges::count_if(a, [](const NonMovable& i) { return i == NonMovable(8); }); in test()
H A Dranges.count.pass.cpp205 struct NonMovable { in test() struct
206 NonMovable(const NonMovable&) = delete; in test()
207 NonMovable(NonMovable&&) = delete; in test()
208 constexpr NonMovable(int i_) : i(i_) {} in test() argument
211 bool operator==(const NonMovable&) const = default; in test()
214 NonMovable a[] = {9, 8, 4, 3}; in test()
215 auto ret = std::ranges::count(a, a + 4, NonMovable(8)); in test()
219 NonMovable a[] = {9, 8, 4, 3}; in test()
220 auto ret = std::ranges::count(a, NonMovable(8)); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
H A Dtypes.h49 struct NonMovable { struct
50 NonMovable() = default;
51 NonMovable(NonMovable&&) = delete;
H A Dmake_shared.array.unbounded.pass.cpp408 using Array = NonMovable[][3]; in main()
H A Dmake_shared.array.bounded.pass.cpp367 using Array = NonMovable[8][3]; in main()
H A Dallocate_shared.array.bounded.pass.cpp394 using Array = NonMovable[8][3]; in main()
H A Dallocate_shared.array.unbounded.pass.cpp436 using Array = NonMovable[][3]; in main()
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.moveconstructible/
H A Dmove_constructible.compile.pass.cpp76 static_assert(!std::move_constructible<NonMovable>);
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.object/
H A Dmovable.compile.pass.cpp100 static_assert(!std::movable<NonMovable>);
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.swappable/
H A Dswappable_with.compile.pass.cpp641 static_assert(!check_swappable_with<NonMovable, NonMovable>());
H A Dswappable.pass.cpp223 static_assert(!std::swappable<NonMovable>);