#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
{
std::cout << "Before swap_if(a < 4.f,a,b)\n"
<<
"<- a = " <<
a <<
'\n'
<<
"<- b = " <<
b <<
'\n'
<<
"<- a < 4.f = " << (
a < 4.f) <<
"\n\n";
std::cout << "After swap_if(a < 4.f,a,b)\n"
<<
"-> a = " <<
a <<
'\n'
<<
"-> b = " <<
b <<
'\n';
return 0;
}
void swap_if(Mask const &mask, Value &lhs, Value &rhs) noexcept
Conditional swap.
Definition swap_if.hpp:39
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition translation.hpp:107