mrdocs::Expected::error_or

Return the contained error or a fallback copy.

Synopsis

template<class G = E>
constexpr
E
error_or(G&& e) const &;

Return Value

Contained error or the fallback converted to E.

Parameters

Name

Description

e

Fallback error to use when engaged.

Created with MrDocs