std::experimental:: is_simd_flag_type
From cppreference.net
<
cpp
|
experimental
|
simd
|
헤더에 정의됨
<experimental/simd>
|
||
|
template
<
class
T
>
struct is_simd_flag_type ; |
(parallelism TS v2) | |
만약
T
가
copy_from
,
copy_to
의 두 번째 인자 또는
simd
,
simd_mask
의 해당 load 생성자에 유효한 타입이라면, 멤버 상수
value
를
true
로 제공합니다. 다른 모든 타입에 대해서는
value
가
false
입니다.
목차 |
템플릿 매개변수
| T | - | 확인할 타입 |
헬퍼 변수 템플릿
|
template
<
class
T
>
constexpr bool is_simd_flag_type_v = is_simd_flag_type < T > :: value ; |
(병렬성 TS v2) | |
std:: integral_constant 로부터 상속됨
멤버 상수
|
value
[static]
|
true
만약
T
가 load/store 플래그 태그 타입인 경우,
false
그렇지 않은 경우
(public static member constant) |
멤버 함수
|
operator bool
|
객체를
bool
로 변환,
value
반환
(public member function) |
|
operator()
(C++14)
|
value
반환
(public member function) |
멤버 타입
| 타입 | 정의 |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
예제
이 코드 실행
#include <experimental/simd> #include <iostream> int main() { namespace stdx = std::experimental; std::cout << std::boolalpha << stdx::is_simd_flag_type_v<stdx::element_aligned_tag> << '\n' << stdx::is_simd_flag_type_v<int> << '\n'; }
출력:
true false
참고 항목
|
(parallelism TS v2)
|
타입이 ABI 태그 타입인지 검사합니다
(클래스 템플릿) |