• Home
  • Raw
  • Download

Lines Matching refs:unexpected

57     class unexpected;  variable
59 unexpected(E) -> unexpected<E>;
90 using unexpected_type = unexpected<E>;
117 else var_ = unexpected(rhs.error()); in expected()
136 else var_ = unexpected(rhs.error()); in expected()
156 else var_ = unexpected(std::move(rhs.error())); in expected()
175 else var_ = unexpected(std::move(rhs.error())); in expected()
182 !std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
192 !std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
203 constexpr expected(const unexpected<G>& e) in expected()
210 constexpr explicit expected(const unexpected<G>& e) in expected()
218 constexpr expected(unexpected<G>&& e) in expected()
225 constexpr explicit expected(unexpected<G>&& e) in expected()
280 expected& operator=(const unexpected<G>& rhs) {
289 expected& operator=(unexpected<G>&& rhs) {
372 friend constexpr bool operator==(const expected<T1, E1>&, const unexpected<E2>&);
374 friend constexpr bool operator==(const unexpected<E2>&, const expected<T1, E1>&);
376 friend constexpr bool operator!=(const expected<T1, E1>&, const unexpected<E2>&);
378 friend constexpr bool operator!=(const unexpected<E2>&, const expected<T1, E1>&);
402 constexpr bool operator==(const expected<T1, E1>& x, const unexpected<E2>& y) {
406 constexpr bool operator==(const unexpected<E2>& x, const expected<T1, E1>& y) {
410 constexpr bool operator!=(const expected<T1, E1>& x, const unexpected<E2>& y) {
414 constexpr bool operator!=(const unexpected<E2>& x, const expected<T1, E1>& y) {
428 using unexpected_type = unexpected<E>;
441 if (!rhs.has_value()) var_ = unexpected(rhs.error()); in expected()
449 if (!rhs.has_value()) var_ = unexpected(rhs.error()); in expected()
458 if (!rhs.has_value()) var_ = unexpected(std::move(rhs.error())); in expected()
466 if (!rhs.has_value()) var_ = unexpected(std::move(rhs.error())); in expected()
474 constexpr expected(const unexpected<G>& e) in expected()
481 constexpr explicit expected(const unexpected<G>& e) in expected()
489 constexpr expected(unexpected<G>&& e) in expected()
496 constexpr explicit expected(unexpected<G>&& e) in expected()
532 expected& operator=(const unexpected<G>& rhs) {
541 expected& operator=(unexpected<G>&& rhs) {
604 class unexpected {
607 constexpr unexpected(const unexpected&) = default;
608 constexpr unexpected(unexpected&&) noexcept(std::is_nothrow_move_constructible_v<E>) = default;
613 !std::is_same_v<std::remove_cv_t<std::remove_reference_t<E>>, unexpected>)>
615 constexpr unexpected(Err&& e) : val_(std::forward<Err>(e)) {} in unexpected() function
620 constexpr explicit unexpected(std::in_place_t, std::initializer_list<U> il, Args&&... args) in unexpected() function
625 !std::is_constructible_v<E, unexpected<Err>&> &&
626 !std::is_constructible_v<E, unexpected<Err>> &&
627 !std::is_constructible_v<E, const unexpected<Err>&> &&
628 !std::is_constructible_v<E, const unexpected<Err>> &&
629 !std::is_convertible_v<unexpected<Err>&, E> &&
630 !std::is_convertible_v<unexpected<Err>, E> &&
631 !std::is_convertible_v<const unexpected<Err>&, E> &&
632 !std::is_convertible_v<const unexpected<Err>, E> &&
636 constexpr unexpected(const unexpected<Err>& rhs) in unexpected() function
641 !std::is_constructible_v<E, unexpected<Err>&> &&
642 !std::is_constructible_v<E, unexpected<Err>> &&
643 !std::is_constructible_v<E, const unexpected<Err>&> &&
644 !std::is_constructible_v<E, const unexpected<Err>> &&
645 !std::is_convertible_v<unexpected<Err>&, E> &&
646 !std::is_convertible_v<unexpected<Err>, E> &&
647 !std::is_convertible_v<const unexpected<Err>&, E> &&
648 !std::is_convertible_v<const unexpected<Err>, E> &&
651 constexpr explicit unexpected(const unexpected<Err>& rhs) in unexpected() function
656 !std::is_constructible_v<E, unexpected<Err>&> &&
657 !std::is_constructible_v<E, unexpected<Err>> &&
658 !std::is_constructible_v<E, const unexpected<Err>&> &&
659 !std::is_constructible_v<E, const unexpected<Err>> &&
660 !std::is_convertible_v<unexpected<Err>&, E> &&
661 !std::is_convertible_v<unexpected<Err>, E> &&
662 !std::is_convertible_v<const unexpected<Err>&, E> &&
663 !std::is_convertible_v<const unexpected<Err>, E> &&
667 constexpr unexpected(unexpected<Err>&& rhs) in unexpected() function
672 !std::is_constructible_v<E, unexpected<Err>&> &&
673 !std::is_constructible_v<E, unexpected<Err>> &&
674 !std::is_constructible_v<E, const unexpected<Err>&> &&
675 !std::is_constructible_v<E, const unexpected<Err>> &&
676 !std::is_convertible_v<unexpected<Err>&, E> &&
677 !std::is_convertible_v<unexpected<Err>, E> &&
678 !std::is_convertible_v<const unexpected<Err>&, E> &&
679 !std::is_convertible_v<const unexpected<Err>, E> &&
682 constexpr explicit unexpected(unexpected<Err>&& rhs) in unexpected() function
686 constexpr unexpected& operator=(const unexpected&) = default;
687 constexpr unexpected& operator=(unexpected&&) noexcept(std::is_nothrow_move_assignable_v<E>) =
690 constexpr unexpected& operator=(const unexpected<Err>& rhs) {
695 constexpr unexpected& operator=(unexpected<Err>&& rhs) {
706 void swap(unexpected& other) noexcept(std::is_nothrow_swappable_v<E>) { in swap()
712 operator==(const unexpected<E1>& e1, const unexpected<E2>& e2);
715 operator!=(const unexpected<E1>& e1, const unexpected<E2>& e2);
718 friend void swap(unexpected<E1>& x, unexpected<E1>& y) noexcept(noexcept(x.swap(y)));
726 operator==(const unexpected<E1>& e1, const unexpected<E2>& e2) {
732 operator!=(const unexpected<E1>& e1, const unexpected<E2>& e2) {
737 void swap(unexpected<E1>& x, unexpected<E1>& y) noexcept(noexcept(x.swap(y))) { in swap()