ΒΆtemplate <class E>
inline constexpr auto err(E&& e) noexcept

Description

Used to construct a [`Result <T , E>`]($sus::result::Result) with an `Err(e)` value. Calling `err()` produces a hint to make a Result <T , E> but does not actually construct [`Result <T , E>`]($sus::result::Result). This is to deduce the actual types `T` and `E` when it is constructed, avoid specifying them both here, and support conversions.

Declared at: sus/result/result.h:973

Templates

E

Parameters

E&& e