mrdocs::Expected::transform_error
transform_error overloads
Synopses
Declared in <mrdocs/Support/Expected.hpp>
Map the contained error, preserve value.
template<class Fn>
requires std::is_constructible_v<T, T&>
constexpr
auto
transform_error(Fn&& f) &;
Map the contained error (const lvalue), preserve value.
template<class Fn>
requires std::is_constructible_v<T, T const&>
constexpr
auto
transform_error(Fn&& f) const &;
Map the contained error (rvalue), preserve value.
template<class Fn>
requires std::is_constructible_v<T, T>
constexpr
auto
transform_error(Fn&& f) &&;
Map the contained error (const rvalue), preserve value.
template<class Fn>
requires std::is_constructible_v<T, const T>
constexpr
auto
transform_error(Fn&& f) const &&;
Parameters
| Name | Description |
|---|---|
f |
Mapping function applied to the error. |
Created with MrDocs