首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::is_execution_policy

Defined in header <execution>

?

?

template< class T > struct is_execution_policy;

?

(since C++17)

检查是否T是标准或实现定义的执行策略类型。

提供成员常量。value等于true,如果Tstd::execution::sequenced_policy,,,std::execution::parallel_policy,,,std::execution::parallel_unsequenced_policy,或者实现定义的执行策略类型。否则,value等于false...

程序添加专门化的行为。std::is_execution_policy

模板参数

T

-

a type to check

辅助模板

Defined in header <execution>

?

?

template< class T > inline constexpr bool is_execution_policy_v = std::is_execution_policy<T>::value;

?

(since C++17)

STD:积分[医]常量

成员常数

value static

true if T is a standard or implementation-defined execution policy type , false otherwise (public static member constant)

成员函数

operator bool

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

operator() (C++14)

returns value (public member function)

成员类型

Type

Definition

value_type

bool

type

std::integral_constant<bool, value>

另见

sequenced_policyparallel_policyparallel_unsequenced_policy (C++17)(C++17)(C++17)

execution policy types (class)

seqparpar_unseq (C++17)(C++17)(C++17)

global execution policy objects (constant)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com