__gnu_para...t_selector(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the Library Functions Manual page for __gnu_para...t_selector(3) πŸ’…

this one is __gnu_parallel::count_selector β€” literally the std::count() selector. periodt. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

inherits generic_for_each_selector< It >. no cap. 🫢

πŸ’– Public Member Functions πŸ’–

  • template<typename Val > Diff operator() (Val &v, It i) β€” one public member function, exact signature, iykyk ✨

πŸŽ€ Public Attributes πŸŽ€

  • It finish_iterator β€” a public attribute, bestie πŸ’–

🌈 Detailed Description 🌈

okay so the template struct is giving:

template<typename It, typename Diff> struct __gnu_parallel::count_selector< It, Diff >

this is the std::count() selector. iconic πŸ’«

Definition at line 182 of file for_each_selectors.h.


πŸ‘‘ Member Function Documentation πŸ‘‘

the way that this signature ate, fr fr:

template<typename It, typename Diff> template<typename Val > Diff __gnu_parallel::count_selector< It, Diff >::operator() (Val & v, It i) [inline]

Functor execution. that's the whole vibe.

Parameters:

  • v β€” Current value.
  • i β€” Iterator referencing object.

Returns:

1 if count, 0 if does not count. slay.

Definition at line 190 of file for_each_selectors.h.


🧚 Member Data Documentation 🧚

inherited data member moment:

It  __gnu_parallel::generic_for_each_selector< It  >::finish_iterator

[inherited] β€” Iterator on last element processed; needed for some algorithms (e. g. std::transform()). obsessed. πŸ’œ

Definition at line 48 of file for_each_selectors.h.


🌸 Author 🌸

Generated automatically by Doxygen for libstdc++ from the source code. no cap, that's the author note. 🫢

kisses bestie πŸ’‹ β€” this page is from libstdc++, dated 21 Apr 2009, for __gnu_para...t_selector(3). πŸ’–βœ¨

πŸ“¦ where this page comes from