__gnu_parallel::__count_selector(3cxx)

__gnu_parallel::__count_selector3cxx

Std::count() selector.

Usage

#include <for_each_selectors.h>

Inherits __gnu_parallel::__generic_for_each_selector< _It >.

Public Member Functions

template<typename _ValueType > _Diff operator() (_ValueType &__v, _It __i)
Functor execution.

Public Attributes

_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.

Member Function Documentation

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

Functor execution.

Parameters

__v Current value.
__i iterator referencing object.

Returns

1 if count, 0 if does not count.

Member Data Documentation

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()).

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.