E.V.E
v2022.03.00

◆ else_()

template<typename V >
constexpr auto eve::ignore_none_::else_ ( v) const
inlineconstexpr

Extend a conditional expression with an alternative value.

By default, conditional operations use their unchanged input whenever the conditional evaluates to false. By using this member function, operations will use the user provided eve::value v instead.

Parameters
vValue to use if the conditional expression evaluates to false
Returns
An instance of eve::or_ wrapping current conditional expression with v.