ΒΆtemplate <class T>
inline constexpr TryImpl<
std::remove_cvref_t<T>>::Output
try_into_output(T&& t) noexcept
template <class T>
inline constexpr TryImpl<
std::remove_cvref_t<T>>::Output
try_into_output(T&& t) noexcept
Description
Unwraps from the [`Try`]($sus::ops::Try) type that is currently in its success state ([`try_is_success`]($sus::ops::try_is_success) would return true) to produce its success value. For instance, this unwraps an [`Result <T , E>`]($sus::result::Result) which can represent success or failure into `T` which represents only success in the type system. # Panics If the input is not in a success state ([`try_is_success`]( $sus::ops::try_is_success) would return true) the function will panic.
Declared at: sus/ops/try.h:151
Templates
- T
Parameters
- T&& t