◆ none
Callable object computing the none value. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value A bool value auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::none Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/none.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<4>>;
using wide_it = eve::wide<std::int16_t, eve::fixed<4>>;
int main()
{
wide_ft pf = {-0.0f, 0.0f, -0.0f, -0.0f};
wide_it qi = {-1, 0, 30, -32768};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qi = " << qi << '\n'
float xf = -0.0f;
float yf = -3.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
constexpr callable_none_ none Callable object computing the none value. Definition: none.hpp:72 |