ΒΆtemplate <class U, class T>
inline constexpr U try_preserve_error(
    T&& t) noexcept

Description

Converts from a [`Try`]($sus::ops::Try) type `T` to another [`Try`]($sus::ops::Try) type `U` with a compatible error state. The input must be in an error state, and the output will be as well. # Panics If the input is not in an error state ([`try_is_success`]($sus::ops::try_is_success) would return false) the function will panic.

Declared at: sus/ops/try.h:215

Templates

U
T

Parameters

T&& t