STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
__gnu_parallel::__count_if_selector< _It, _Diff > Struct Template Reference

std::count_if () selector. More...

#include <parallel/for_each_selectors.h>

Inheritance diagram for __gnu_parallel::__count_if_selector< _It, _Diff >:
__gnu_parallel::__generic_for_each_selector< _It >

Public Member Functions

template<typename _Op >
_Diff operator() (_Op &__o, _It __i)
 Functor execution. More...
 

Additional Inherited Members

- Public Attributes inherited from __gnu_parallel::__generic_for_each_selector< _It >
_It _M_finish_iterator
 _Iterator on last element processed; needed for some algorithms (e. g. std::transform()). More...
 

Detailed Description

template<typename _It, typename _Diff>
struct __gnu_parallel::__count_if_selector< _It, _Diff >

std::count_if () selector.

Member Function Documentation

template<typename _It , typename _Diff >
template<typename _Op >
_Diff __gnu_parallel::__count_if_selector< _It, _Diff >::operator() ( _Op &  __o,
_It  __i 
)
inline

Functor execution.

Parameters
__oOperator.
__iiterator referencing object.
Returns
1 if count, 0 if does not count.
203  { return (__o(*__i)) ? 1 : 0; }

The documentation for this struct was generated from the following file: