GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::is_simd,std::experimental::is_simd_mask(3) C++ Standard Libary std::experimental::is_simd,std::experimental::is_simd_mask(3)

std::experimental::is_simd,std::experimental::is_simd_mask - std::experimental::is_simd,std::experimental::is_simd_mask


Defined in header <experimental/simd>
template< class T > (1) (parallelism TS v2)
struct is_simd;
template< class T > (2) (parallelism TS v2)
struct is_simd_mask;


1) If T is a specialization of the simd class template, provides the member constant
value equal true. For any other type, value is false.
2) If T is a specialization of the simd_mask class template, provides the member
constant value equal true. For any other type, value is false.


T - a type to check


Helper variable template


template< class T > (parallelism TS v2)
inline constexpr bool is_simd_v = is_simd<T>::value;
template< class T > (parallelism TS v2)
inline constexpr bool is_simd_mask_v = is_simd_mask<T>::value;

Inherited from std::integral_constant


value true if T is a simd/simd_mask type , false otherwise
[static] (public static member constant)


operator bool converts the object to bool, returns value
(public member function)
operator() returns value
(C++14) (public member function)


Type Definition
value_type bool
type std::integral_constant<bool, value>

// Run this code


#include <experimental/simd>
#include <iostream>


int main()
{
namespace stdx = std::experimental;
std::cout
<< std::boolalpha
<< stdx::is_simd_v<stdx::simd<float>> << '\n';
<< stdx::is_simd_v<int> << '\n';
<< stdx::is_simd_mask_v<stdx::simd_mask<float>> << '\n';
<< stdx::is_simd_mask_v<int> << '\n';
}


true
false
true
false

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.