Lines Matching full:expected
62 // Simplified implementation of proposed std::expected
63 // Note that as with std::expected, program that tries to instantiate
64 // Expected with T or E for a reference type is ill-formed.
66 class Expected final {
69 Expected() noexcept : v_(T()) in Expected() function
72 // The following constructors are non-explicit to be aligned with std::expected
74 Expected(T v) noexcept(std::is_nothrow_move_constructible_v<T>) : v_(std::move(v)) {} in noexcept()
76 …Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value… in noexcept()
150 ~Expected() = default;
152 DEFAULT_COPY_SEMANTIC(Expected);
153 DEFAULT_MOVE_SEMANTIC(Expected);