std::is_execution_policy(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

Hey bestie! πŸ’– You’re looking at the std::is_execution_policy(3) page from the C++ Standard Libary manual β€” yes, that’s the manual name, typo and all, and we’re keeping it exactly as the source says. Slay. ✨

🌸 NAME 🌸

std::is_execution_policy - std::is_execution_policy

🌸 Synopsis 🌸

Defined in header <execution>
template< class T >            (since C++17)
struct is_execution_policy;

Checks whether T is a standard or implementation-defined execution policy type.

Provides the member constant value which is equal to true, if T is a standard execution policy type, or an implementation-defined execution policy type. Otherwise, value is equal to false.

⚠️ Undefined behavior alert: If the program adds specializations for std::is_execution_policy or std::is_execution_policy_v, the behavior is undefined. Not a vibe, bestie. πŸ’€

πŸŽ€ Template parameters πŸŽ€

  • T β€” a type to check

🧚 Helper template 🧚

Defined in header <execution> β€” and yes, this one is since C++17 too. πŸ¦‹

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

🧬 Inherited from std::integral_constant 🧬

πŸ’Ž Member constants πŸ’Ž

  • value [static] β€” true if T is a standard or implementation-defined execution policy type, false otherwise (public static member constant)

πŸ› οΈ Member functions πŸ› οΈ

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

🧬 Member types 🧬

  • value_type β€” bool
  • type β€” std::integral_constant<bool, value>

πŸ‘€ See also πŸ‘€

  • execution policy types (class): sequenced_policy (C++17), parallel_policy (C++17), parallel_unsequenced_policy (C++17), unsequenced_policy (C++20)
  • global execution policy objects (constant): seq (C++17), par (C++17), par_unseq (C++17), unseq (C++20)

That’s the whole page, bestie! 🫢 Source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::is_execution_policy(3). Periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from