std::experi...tion_policy(3)
π NAME π
okay bestie, this is std::experi...tion_policy(3) from the C++ Standard Libary manual (yes, that spelling is in the header, no cap π), and the NAME line is literally std::experimental::parallel::is_execution_policy - std::experimental::parallel::is_execution_policy. She said it twice because she contains multitudes. π
β¨ Synopsis β¨
Defined in header <experimental/execution_policy>:
template< class T > (parallelism TS)
struct is_execution_policy;
This icon checks whether T is a standard or implementation-defined execution policy type. π¦
She provides the member constant value, which is equal to true if T is execution_policy, sequential_execution_policy, parallel_execution_policy, parallel_vector_execution_policy, or an implementation-defined execution policy type. Otherwise, value is equal to false. Periodt.
Warning bestie: the behavior of a program that adds specializations for is_execution_policy is undefined. Like, do not do it. Not cute, not slay, not the vibe. π
πΈ Template parameters πΈ
Tβ a type to check. Thatβs the whole vibe check. π«Ά
π Helper template π
Defined in header <experimental/execution_policy>:
template< class T >
constexpr bool is_execution_policy_v =
(parallelism TS)
is_execution_policy<T>::value;
Thatβs the (parallelism TS) helper template, lowkey iconic. β¨
π Inherited from std::integral_constant π
π Member constants π
valueβtrueifTis a standard or implementation-defined execution policy type,falseotherwise. Itβs[static], and itβs a public static member constant. So yes, main character energy. π
π₯ Member functions π₯
operator boolβ converts the object tobool, returnsvalue. Public member function. Slay. πoperator()β returnsvalue. Marked(C++14). Public member function. The way she calls herself? Obsessed. π
π Member types π
value_typeβbooltypeβstd::integral_constant<bool, value>
okay bestie, thatβs the whole page π this came from http://cppreference.com, dated 2024.06.10, and the footer still calls it std::experi...tion_policy(3) β cute little sign-off, fr fr. go check your execution policy vibes now. π§ββοΈπ±β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms