xentara-utils v2.0.3
The Xentara Utility Library
|
Implementation of C++23 std::expected More...
#include <xentara/utils/eh/expected.hpp>
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename RelatedType , typename Type , typename Error > | |
constexpr auto | expectedCast (const expected< Type, Error > &source) noexcept(std::is_nothrow_constructible_v< expected< RelatedType, Error >, const expected< RelatedType, Error > & >) -> expected< RelatedType, Error > |
Explicitly casts an expected to a related type. | |
template<typename RelatedType , typename Type , typename Error > | |
constexpr auto | expectedCast (expected< Type, Error > &&source) noexcept(std::is_nothrow_constructible_v< expected< RelatedType, Error >, expected< RelatedType, Error > && >) -> expected< RelatedType, Error > |
Explicitly casts an expected to a related type. | |
Implementation of C++23 std::expected
This is an implementation of the proposed std::expected from C++23, taken from https://github.com/TartanLlama/expected.