E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches
eve::if_< C > Struct Template Reference

Extensible wrapper for SIMD conditional. More...

#include <eve/conditional.hpp>

Detailed Description

template<typename C>
struct eve::if_< C >

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

eve::if_ wraps a eve::logical value so that it can be either extended with an alternative value or an helper to optimize conditional operations evaluation.

Template Parameters
CType of the wrapped eve::logical value

Public Member Functions

 if_ (C c)
 Constructs a conditional expression from a eve::logical value.
 
template<typename V >
auto else_ (V const &v) const
 Extends a conditional expression with an alternative value.
 
template<typename T >
auto mask (eve::as< T > const &) const
 Computes the eve::logical_value associated to the current conditional.
 

Public Attributes

condition_
 Stored logical value.
 

Friends

std::ostream & operator<< (std::ostream &os, if_ const &c)
 Inserts a eve::if_ conditional expression into a output stream.