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

◆ false_

auto eve::false_ = functor<false_t>
inlineconstexpr

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template<eve::plain_value T> constexpr eve::as_logical<T> false_(as<T> x) noexcept;
}
constexpr auto false_
Computes the false logical value.
Definition false.hpp:66
EVE Main Namespace.
Definition abi.hpp:18
Lightweight type-wrapper.
Definition as.hpp:29

Parameters

  • x : Type wrapper instance embedding the type of the constant.

Return value

The call eve::false_(as<T>()) returns the false logical value for type T.

Example

#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float>;
using wide_it = eve::wide<std::int16_t>;
template<typename T>
consteval auto constexpr_false_() { return eve::false_(eve::as<T>{}); }
int main()
{
wide_ft wxf;
wide_it wxi;
std::cout << "---- simd" << std::endl
<< "-> false_(as<wide_ft>()) = " << eve::false_(eve::as<wide_ft>()) << std::endl
<< "-> false_(as<wide_it>()) = " << eve::false_(eve::as<wide_it>()) << std::endl
<< "-> false_(as(wxf)) = " << eve::false_(eve::as(wxf)) << std::endl
<< "-> false_(as(wxi)) = " << eve::false_(eve::as(wxi)) << std::endl;
double xf;
std::int16_t xi;
std::cout << "---- scalar" << std::endl
<< "-> false_(as<float>()) = " << eve::false_(eve::as(float())) << std::endl
<< "-> false_(as<std::int16_t>()) = " << eve::false_(eve::as(std::int16_t())) << std::endl
<< "-> false_(as<xf)) = " << eve::false_(eve::as(xf)) << std::endl
<< "-> false_(as<xi)) = " << eve::false_(eve::as(xi)) << std::endl;
std::cout << "-> constexpr false_ = " << constexpr_false_<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:86