Home
last modified time | relevance | path

Searched refs:ThrowsOnCopy (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/
H A Dtypes.h129 struct ThrowsOnCopy { struct
130 constexpr ThrowsOnCopy() = default;
131 constexpr explicit ThrowsOnCopy(int x) : value(x) { } in ThrowsOnCopy() function
132 ThrowsOnCopy(ThrowsOnCopy const& other) { in ThrowsOnCopy() function
137 ThrowsOnCopy& operator=(ThrowsOnCopy const&) = delete; // prevent from being copyable argument
145 inline std::ranges::__copyable_box<ThrowsOnCopy> create_empty_box() { in create_empty_box() argument
146 std::ranges::__copyable_box<ThrowsOnCopy> box1; in create_empty_box()
147 std::ranges::__copyable_box<ThrowsOnCopy> box2(std::in_place, THROW_WHEN_COPIED_FROM); in create_empty_box()
H A Dhas_value.pass.cpp43 std::ranges::__copyable_box<ThrowsOnCopy> x = create_empty_box(); in main()
H A Dassign.copy.pass.cpp116 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
H A Dassign.move.pass.cpp174 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.not_fn/
H A Dnot_fn.pass.cpp241 struct ThrowsOnCopy { in throws_in_constructor_test() struct
242 ThrowsOnCopy(ThrowsOnCopy const&) { in throws_in_constructor_test() function
245 ThrowsOnCopy() = default; in throws_in_constructor_test()
256 ThrowsOnCopy cp; in throws_in_constructor_test()