Lines Matching refs:E
24 template <typename E>
27 template<class E>
28 unexpected(E) -> unexpected<E>;
32 template <typename T, typename E>
47 constexpr expected(const unexpected<E>& u) in expected()
50 template<class OtherE = E, ENABLE_IF(std::is_constructible<E, const OtherE&>::value)>
72 constexpr const E& error() const& { return std::get<E>(mVariant); } in error()
73 constexpr E& error() & { return std::get<E>(mVariant); } in error()
74 constexpr const E&& error() const&& { return std::move(std::get<E>(mVariant)); } in error()
75 constexpr E&& error() && { return std::move(std::get<E>(mVariant)); } in error()
78 typename NewE = std::remove_cv_t<std::invoke_result_t<F, E>>>
92 std::variant<T, E> mVariant;
95 template <typename E>
104 template<class... Args, ENABLE_IF(std::is_constructible<E, Args&&...>::value)>
108 constexpr const E& value() const& noexcept { return mError; } in value()
109 constexpr E& value() & noexcept { return mError; } in value()
110 constexpr const E&& value() const&& noexcept { return std::move(mError); } in value()
111 constexpr E&& value() && noexcept { return std::move(mError); } in value()
114 E mError;