std::experimental::is_simd_flag_type - cppreference.com (original) (raw)

| | | | | ------------------------------------------------- | | ------------------- | | template< class T > struct is_simd_flag_type; | | (parallelism TS v2) |

If T is a valid type for the second argument to copy_from, copy_to or the corresponding load constructors of simd or simd_mask, provides the member constant value equal true. For any other type, value is false.

Contents

[edit] Template parameters

[edit] Helper variable template

| template< class T > constexpr bool is_simd_flag_type_v = is_simd_flag_type<T>::value; | | (parallelism TS v2) | | ----------------------------------------------------------------------------------------------- | | ------------------- |

Inherited from std::integral_constant

Member constants

| | true if T is a load/store flag tag type, false otherwise (public static member constant) | | ------------------------------------------------------------------------------------------- |

Member functions

| | converts the object to bool, returns value (public member function) | | ---------------------------------------------------------------------- | | | returns value (public member function) |

Member types

[edit] Example

#include <experimental/simd> #include   int main() { namespace stdx = std::experimental; std::cout << std::boolalpha << stdx::is_simd_flag_type_vstdx::element_aligned_tag << '\n' << stdx::is_simd_flag_type_v << '\n'; }

Output:

[edit] See also

| | checks if a type is an ABI tag type (class template) [edit] | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |