Searched refs:ThrowsOnCopy (Results 1 – 5 of 5) sorted by relevance
129 struct ThrowsOnCopy { struct130 constexpr ThrowsOnCopy() = default;131 constexpr explicit ThrowsOnCopy(int x) : value(x) { } in ThrowsOnCopy() function132 ThrowsOnCopy(ThrowsOnCopy const& other) { in ThrowsOnCopy() function137 ThrowsOnCopy& operator=(ThrowsOnCopy const&) = delete; // prevent from being copyable argument145 inline std::ranges::__copyable_box<ThrowsOnCopy> create_empty_box() { in create_empty_box() argument146 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()
43 std::ranges::__copyable_box<ThrowsOnCopy> x = create_empty_box(); in main()
116 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
174 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
241 struct ThrowsOnCopy { in throws_in_constructor_test() struct242 ThrowsOnCopy(ThrowsOnCopy const&) { in throws_in_constructor_test() function245 ThrowsOnCopy() = default; in throws_in_constructor_test()256 ThrowsOnCopy cp; in throws_in_constructor_test()