eve::logical< T > Struct Template Reference
Wrapper for SIMD compatible logical types. More...
Detailed Description
template<typename T>
struct eve::logical< T >
struct eve::logical< T >
Wrapper for SIMD compatible logical types.
Required header: #include <eve/logical.hpp>
eve::logical is an architecture-agnostic representation of a boolean mask and provides standardized API to access informations, compute values and manipulate such mask. Contrary to bool
, an instance of logical has the same sizeof as T
, allowing seamless interaction with an instance eve::logical<eve::wide< T >>.
- Template Parameters
-
T Type of value to store a mask from
Public Member Functions | |
Constructors | |
constexpr | logical () noexcept |
Default constructor. | |
constexpr | logical (logical const &) noexcept=default |
Copy constructor. | |
constexpr | logical (bool v) noexcept |
Construct from a bool | |
template<scalar_value U> | |
constexpr | logical (U const &v) noexcept |
Construct from a scalar_value. | |
Assignment operators | |
constexpr logical & | operator= (logical const &v) &noexcept |
Assign another logical. | |
constexpr logical & | operator= (bool v) &noexcept |
Assign a bool | |