auto eve::map_alternative | ( | C | 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.
c | eve::conditional_expr to transform |
op | Unary callable object to apply |
c
which alternative value, if any is repalced by op(c.alternative)