__gnu_parallel::balanced_tag(3cxx)

πŸ’… NAME

__gnu_parallel::balanced_tag β€” bestie, this one is a compile-time vibe check that says "yo, run this in parallel with dynamic load-balancing" πŸ’–

(You're in the <cxx> manual section, 3cxx, just so you know where you are πŸŽ€)


🌸 SYNOPSIS

#include <tags.h>

Inherits __gnu_parallel::parallel_tag β€” so it's got that family energy, iykyk πŸ‘‘

✨ Public Member Functions

  • _ThreadIndex __get_num_threads() β€” find out the desired number of threads 🧡
  • void set_num_threads(_ThreadIndex __num_threads) β€” set the desired number of threads 🎚️

πŸ¦‹ Detailed Description

So the whole point: this tag recommends parallel execution using dynamic load-balancing at compile time. That's it, that's the tag. It's giving "little tag, big responsibility" ✨


πŸŽ€ Member Function Documentation

_ThreadIndex __gnu_parallel::parallel_tag::__get_num_threads() [inline], [inherited] 🫢

Find out the desired number of threads.

Returns: the desired number of threads. Slay, that's the whole answer πŸ’…

It's referenced by __gnu_parallel::__parallel_sort() β€” and ngl, the docs literally list that same call seven times, so here are all seven, no cap:

  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()
  • __gnu_parallel::__parallel_sort()

Seven. Iconic. Obsessed 😭πŸ”₯

void __gnu_parallel::parallel_tag::set_num_threads(_ThreadIndex __num_threads) [inline], [inherited] 🌸

Set the desired number of threads.

Parameters:

  • __num_threads β€” desired number of threads 🧡✨

πŸ‘‘ Author

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just machine main-character energy πŸ€–πŸ’œ


Heads up bestie: this page is straight from libstdc++, section 3cxx, and the whole thing is Doxygen-generated from the source β€” so if something looks auto-written, that's because it literally is πŸ™ˆ

πŸ’– That's the whole page, you ate that. Go forth and load-balance dynamically, __gnu_parallel::balanced_tag(3cxx) signing off πŸŽ€πŸŒˆβ­