std::experi...allel::par,(3)

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

Okay so we’re in the C++ Standard Libary manpage, specifically std::experi...allel::par,(3) β€” parallelism TS era, and we are keeping every comma, bestie πŸ’…βœ¨

πŸ’– NAME πŸ’–

       std::experimental::parallel::seq,std::experimental::parallel::par, -
       std::experimental::parallel::seq,std::experimental::parallel::par,

That’s the NAME line exactly β€” trailing commas and all. No edits, no cleanup, we respect the sacred text 🫢

✨ Synopsis ✨

Defined in header <experimental/execution_policy> β€” write it down, it’s giving header-file realness πŸ“Œ

          constexpr sequential_execution_policy seq{};           (parallelism
       TS)
          constexpr parallel_execution_policy par{};             (parallelism
       TS)
          constexpr parallel_vector_execution_policy par_vec{};  (parallelism
       TS)

So seq, par and par_vec are instances of the execution policy types sequential_execution_policy, parallel_execution_policy and parallel_vector_execution_policy respectively β€” slay, in that exact order πŸ’–

They are used to specify the execution policy of parallel algorithms - i.e., the kinds of parallelism allowed. That’s the whole point, no cap ✨


and that’s the page, bestie 🫢 source/version: http://cppreference.com; date: 2024.06.10; page tag: std::experi...allel::par,(3) β€” periodt πŸ’œπŸŒˆ

πŸ“¦ where this page comes from