__GNU_PARALLEL::__COUNT_SELECTOR(3cxx)

πŸ’– NAME πŸ’–

Okay so, page title realness: __GNU_PARALLEL::__COUNT_SELECTOR(3cxx) β€” yep, that’s the header, and this is a libstdc++ manual page in the 3cxx section, bestie.

The NAME line is exactly this vibe:

__gnu_parallel::__count_selector< _It, _Diff > β€” std::count() selector.


✨ SYNOPSIS ✨

Include this, no cap:

#include <for_each_selectors.h>
  • Inherits __gnu_parallel::__generic_for_each_selector< _It >.

🫢 Public Member Functions

  • operator() β€” here’s the signature, verbatim:
template<typename _ValueType > _Diff operator() (_ValueType &__v, _It __i)

Functor execution. Slay.

πŸŽ€ Public Attributes

  • _M_finish_iterator β€” _It _M_finish_iterator: _Iterator on last element processed; needed for some algorithms (e. g. std::transform()).

🌸 Detailed Description 🌸

template<typename _It, typename _Diff>
struct __gnu_parallel::__count_selector< _It, _Diff >"std::count() selector.

It’s giving std::count() selector, periodt.


πŸ”₯ Member Function Documentation πŸ”₯

🧚 operator() β€” inline

template<typename _It , typename _Diff > template<typename _ValueType >
    _Diff __gnu_parallel::__count_selector< _It, _Diff >::operator()
    (_ValueType & __v, _It __i) [inline]

Functor execution. Main character energy.

Parameters

  • __v β€” Current value.
  • __i β€” iterator referencing object.

Returns

  • 1 if count, 0 if does not count.

πŸ¦‹ Member Data Documentation πŸ¦‹

πŸ“ _M_finish_iterator β€” inherited

template<typename _It > _It __gnu_parallel::__generic_for_each_selector< _It
    >::_M_finish_iterator [inherited]

_Iterator on last element processed; needed for some algorithms (e. g. std::transform()).


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


✨ cute little sign-off ✨ Source/version: libstdc++; the footer line is libst__gnu_parallel:...r< _It, _Diff >(3cxx), and no separate date is shown in the supplied footer. Auto-generated by Doxygen for libstdc++ from the source code, fr fr. πŸ’…πŸŽ€