Conditional expression selecting all lanes from a eve::simd_value.
Required header: #include <eve/conditional.hpp>
- See also
- eve::ignore_none
|
| template<typename V> |
| constexpr auto | else_ (V v) const |
| | Extends a conditional expression with an alternative value.
|
|
template<typename T> |
| auto | mask (eve::as< T > const &tgt) const |
| | Computes the eve::logical_value associated to the current conditional.
|
|
template<typename T> |
| constexpr std::ptrdiff_t | count (eve::as< T > const &) const |
| | Number of lanes to be left unmasked.
|
|
constexpr bool friend | operator== (ignore_none_ const &, ignore_none_ const &)=default |
| | Checks equality between two eve::ignore_none_ instances.
|
|
|
template<typename Ch, typename Ct> |
| auto & | operator<< (std::basic_ostream< Ch, Ct > &os, ignore_none_ const &) |
| | Inserts a eve::ignore_none_ conditional expression into a output stream.
|
◆ else_()
template<typename V>
| auto eve::ignore_none_::else_ |
( |
V | v | ) |
const |
|
inlineconstexpr |
Extends a conditional expression with an alternative value.
By default, conditional operations use their unchanged input whenever the conditional evaluates to false. By using this member function, operations will use the user provided eve::value v instead.
- Parameters
-
| v | Value to use if the conditional expression evaluates to false |
- Returns
- An instance of eve::or_ wrapping current conditional expression with v.