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

◆ bit_cast_alternative()

template<eve::relative_conditional_expr C, typename Tgt>
auto eve::bit_cast_alternative ( C c,
as< Tgt > tgt )

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

Creates a eve::conditional_expr by bitcasting the alternative value of c to a new type, Tgt, if any is present.

Parameters
ceve::conditional_expr to transform
tgtTarget type
Returns
A eve::conditional_expr of the same kind that c which alternative value, if any is repalced by the bitcast of c.alternative to Tgt