Home
last modified time | relevance | path

Searched refs:__copyable_box (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/libcxx/include/__ranges/
H A Dcopyable_box.h43 class __copyable_box {
61 _LIBCPP_HIDE_FROM_ABI __copyable_box(__copyable_box const&) = default;
62 _LIBCPP_HIDE_FROM_ABI __copyable_box(__copyable_box&&) = default;
65 constexpr __copyable_box& operator=(__copyable_box const& __other)
76 __copyable_box& operator=(__copyable_box&&) requires movable<_Tp> = default;
79 constexpr __copyable_box& operator=(__copyable_box&& __other)
118 class __copyable_box<_Tp> {
136 _LIBCPP_HIDE_FROM_ABI __copyable_box(__copyable_box const&) = default;
137 _LIBCPP_HIDE_FROM_ABI __copyable_box(__copyable_box&&) = default;
145 constexpr __copyable_box& operator=(__copyable_box const& __other) noexcept {
[all …]
H A Dsingle_view.h34 __copyable_box<_Tp> __value_;
H A Dfilter_view.h49 _LIBCPP_NO_UNIQUE_ADDRESS __copyable_box<_Pred> __pred_;
H A Dtransform_view.h64 _LIBCPP_NO_UNIQUE_ADDRESS __copyable_box<_Fn> __func_;
/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/
H A Dproperties.compile.pass.cpp22 typename std::ranges::__copyable_box<T>;
38 static_assert(sizeof(std::ranges::__copyable_box<CopyConstructible>) == sizeof(std::optional<CopyCo…
41 static_assert(sizeof(std::ranges::__copyable_box<Copyable>) == sizeof(Copyable));
42 static_assert(alignof(std::ranges::__copyable_box<Copyable>) == alignof(Copyable));
45 static_assert(sizeof(std::ranges::__copyable_box<NothrowCopyConstructible>) == sizeof(NothrowCopyCo…
46 static_assert(alignof(std::ranges::__copyable_box<NothrowCopyConstructible>) == alignof(NothrowCopy…
H A Dctor.in_place.pass.cpp33 using Box = std::ranges::__copyable_box<CopyConstructible>; in test()
42 using Box = std::ranges::__copyable_box<Copyable>; in test()
51 using Box = std::ranges::__copyable_box<NothrowCopyConstructible>; in test()
58 …static_assert( std::is_nothrow_constructible_v<std::ranges::__copyable_box<NothrowConstructible<tr… in test()
59 …static_assert(!std::is_nothrow_constructible_v<std::ranges::__copyable_box<NothrowConstructible<fa… in test()
H A Dassign.move.pass.cpp28 using Box = std::ranges::__copyable_box<CopyConstructible>; in test()
55 using Box = std::ranges::__copyable_box<CopyConstructibleMovable>; in test()
84 using Box = std::ranges::__copyable_box<Copyable>; in test()
113 using Box = std::ranges::__copyable_box<MovableNothrowCopyConstructible>; in test()
142 using Box = std::ranges::__copyable_box<NothrowCopyConstructible>; in test()
174 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
H A Dassign.copy.pass.cpp28 using Box = std::ranges::__copyable_box<CopyConstructible>; in test()
55 using Box = std::ranges::__copyable_box<Copyable>; in test()
84 using Box = std::ranges::__copyable_box<NothrowCopyConstructible>; in test()
116 using Box = std::ranges::__copyable_box<ThrowsOnCopy>; in test_empty_state()
H A Dhas_value.pass.cpp24 std::ranges::__copyable_box<T> const x(std::in_place, 10); in check()
43 std::ranges::__copyable_box<ThrowsOnCopy> x = create_empty_box(); in main()
H A Dderef.pass.cpp27 std::ranges::__copyable_box<T> x(std::in_place, 10); in check()
35 std::ranges::__copyable_box<T> const x(std::in_place, 10); in check()
H A Darrow.pass.cpp27 std::ranges::__copyable_box<T> x(std::in_place, 10); in check()
36 std::ranges::__copyable_box<T> const x(std::in_place, 10); in check()
H A Dtypes.h145 inline std::ranges::__copyable_box<ThrowsOnCopy> create_empty_box() { in create_empty_box()
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 Dno_unique_address.pass.cpp30 using Box = std::ranges::__copyable_box<Empty>;
H A Dctor.default.pass.cpp23 using Box = std::ranges::__copyable_box<T>;