Lines Matching refs:expected
78 class expected {
94 friend class expected; variable
102 using rebind = expected<_Up, error_type>;
105 _LIBCPP_HIDE_FROM_ABI constexpr expected() in expected() function
112 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&) = delete;
114 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&)
121 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected& __other) in expected() function
134 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&&)
139 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&& __other) in expected() function
156 _Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
157 _Not<is_constructible<_Tp, expected<_Up, _OtherErr>>>,
158 _Not<is_constructible<_Tp, const expected<_Up, _OtherErr>&>>,
159 _Not<is_constructible<_Tp, const expected<_Up, _OtherErr>>>,
160 _Not<is_convertible<expected<_Up, _OtherErr>&, _Tp>>,
161 _Not<is_convertible<expected<_Up, _OtherErr>&&, _Tp>>,
162 _Not<is_convertible<const expected<_Up, _OtherErr>&, _Tp>>,
163 _Not<is_convertible<const expected<_Up, _OtherErr>&&, _Tp>>,
164 _Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
165 _Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
166 _Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
167 _Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>> >;
175 expected(const expected<_Up, _OtherErr>& __other) in expected() function
189 expected(expected<_Up, _OtherErr>&& __other) in expected() function
200 …requires(!is_same_v<remove_cvref_t<_Up>, in_place_t> && !is_same_v<expected, remove_cvref_t<_Up>> …
203 expected(_Up&& __u) in expected() function
213 expected(const unexpected<_OtherErr>& __unex) in expected() function
222 expected(unexpected<_OtherErr>&& __unex) in expected() function
230 _LIBCPP_HIDE_FROM_ABI constexpr explicit expected(in_place_t, _Args&&... __args) in expected() function
239 expected(in_place_t, initializer_list<_Up> __il, _Args&&... __args) in expected() function
247 _LIBCPP_HIDE_FROM_ABI constexpr explicit expected(unexpect_t, _Args&&... __args) in expected() function
256 expected(unexpect_t, initializer_list<_Up> __il, _Args&&... __args) in expected() function
264 _LIBCPP_HIDE_FROM_ABI constexpr ~expected()
268 _LIBCPP_HIDE_FROM_ABI constexpr ~expected() in ~expected()
304 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const expected&) = delete;
306 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const expected& __rhs)
332 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(expected&& __rhs)
359 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(_Up&& __v)
360 requires(!is_same_v<expected, remove_cvref_t<_Up>> &&
390 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const unexpected<_OtherErr>& __un) { in requires()
402 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(unexpected<_OtherErr>&& __un) { in requires()
439 _LIBCPP_HIDE_FROM_ABI constexpr void swap(expected& __rhs) in swap()
451 auto __swap_val_unex_impl = [&](expected& __with_val, expected& __with_err) { in swap()
497 _LIBCPP_HIDE_FROM_ABI friend constexpr void swap(expected& __x, expected& __y) in swap()
604 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const expected<_T2, _E…
617 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const _T2& __v) {
622 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const unexpected<_E2>&…
651 class expected<_Tp, _Err> {
657 friend class expected; variable
663 _Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
664 _Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
665 _Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
666 _Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>>>;
674 using rebind = expected<_Up, error_type>;
677 _LIBCPP_HIDE_FROM_ABI constexpr expected() noexcept : __has_val_(true) {} in expected() function
679 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&) = delete;
681 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&)
685 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected& __rhs) in expected() function
694 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&&)
698 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&& __rhs) in expected() function
710 expected(const expected<_Up, _OtherErr>& __rhs) in expected() function
721 expected(expected<_Up, _OtherErr>&& __rhs) in expected() function
732 expected(const unexpected<_OtherErr>& __unex) in expected() function
741 expected(unexpected<_OtherErr>&& __unex) in expected() function
747 _LIBCPP_HIDE_FROM_ABI constexpr explicit expected(in_place_t) noexcept : __has_val_(true) {} in expected() function
751 _LIBCPP_HIDE_FROM_ABI constexpr explicit expected(unexpect_t, _Args&&... __args) in expected() function
759 …_LIBCPP_HIDE_FROM_ABI constexpr explicit expected(unexpect_t, initializer_list<_Up> __il, _Args&&.… in expected() function
767 _LIBCPP_HIDE_FROM_ABI constexpr ~expected()
771 _LIBCPP_HIDE_FROM_ABI constexpr ~expected() in ~expected()
781 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const expected&) = delete;
783 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const expected& __rhs)
803 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(expected&&) = delete;
805 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(expected&& __rhs)
829 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(const unexpected<_OtherErr>& __un) { in requires()
841 _LIBCPP_HIDE_FROM_ABI constexpr expected& operator=(unexpected<_OtherErr>&& __un) { in requires()
859 _LIBCPP_HIDE_FROM_ABI constexpr void swap(expected& __rhs) in swap()
863 auto __swap_val_unex_impl = [&](expected& __with_val, expected& __with_err) { in swap()
884 _LIBCPP_HIDE_FROM_ABI friend constexpr void swap(expected& __x, expected& __y) in swap()
935 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const expected<_T2, _E…
944 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const unexpected<_E2>&…