Skip to navigation

holoscan::make_unexpected

Beta
View as Markdown
template <class E>
unexpected<std::decay_t<E>> holoscan::make_unexpected(
E &&error
)

Construct an owning unexpected error value.

Decay the argument type so an lvalue never produces a reference-bearing unexpected.

Returns: The owning unexpected error value.

Template parameters

E
class

Deduced error argument type.

Parameters

error
E &&

Error value to copy or move into the result.