20 #ifndef VC_COMMON_IIF_H
21 #define VC_COMMON_IIF_H
47 template<
typename T>
static Vc_ALWAYS_INLINE Vector<T>
iif (
typename Vector<T>::Mask condition, Vector<T> trueValue, Vector<T> falseValue)
50 template<
typename T>
static Vc_ALWAYS_INLINE Vector<T>
iif (
const typename Vector<T>::Mask &condition,
const Vector<T> &trueValue,
const Vector<T> &_falseValue)
52 Vector<T> falseValue(_falseValue);
54 falseValue(condition) = trueValue;
62 #endif // VC_COMMON_IIF_H
Namespace for new ROOT classes and functions.
static Vc_ALWAYS_INLINE Vector< T > iif(typename Vector< T >::Mask condition, Vector< T > trueValue, Vector< T > falseValue)
Function to mimic the ternary operator '?:'.