E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ map_alternative()

auto eve::map_alternative ( c,
auto  op 
)

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)