E.V.E
v2022.09.01

◆ map_alternative()

auto eve::map_alternative ( c,
auto  op 
)

Computes a transformed conditional.

Required header: #include <eve/conditional.hpp>

Creates a eve::conditional_expr by applying an arbitrary operation op on c, thus modifying its alternate value if any is present.

Parameters
ceve::conditional_expr to transform
opUnary callable object to apply
Returns
A eve::conditional_expr of the same kind that c which alternative value, if any is repalced by op(c.alternative)