mrdocs::Expected::transform_error

Map the contained error (rvalue), preserve value.

Synopsis

template<class Fn>
requires std::is_constructible_v<T, T>
constexpr
auto
transform_error(Fn&& f) &&;

Return Value

Expected holding the original value or mapped error.

Parameters

Name

Description

f

Mapping function applied to the error.

Created with MrDocs