mrdocs::Expected::error_or

error_or overloads

Synopses

Return the contained error or a fallback copy.

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

Return the contained error or a fallback move.

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

Return Value

Contained error or the fallback converted to E.

Parameters

Name Description

e

Fallback error to use when engaged.

Created with MrDocs