---
name: "__gnu_parallel::count_selector"
section: "3cxx"
platform: "linux"
package: "libstdc++6-4.4-doc"
version: "4.4.7-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::count_selector/3cxx"
---

# \_\_gnu\_parallel::count\_selector(3cxx)

## NAME

\_\_gnu\_parallel::count\_selector\< It, Diff \> -

## SYNOPSIS

Inherits **\_\_gnu\_parallel::generic\_for\_each\_selector\< It \>**.

### Public Member Functions

template\<typename Val \> Diff **operator()** (Val &v, It i)\

### Public Attributes

It **finish\_iterator**\

## Detailed Description

### template\<typename It, typename Diff\>struct \_\_gnu\_parallel::count\_selector\< It, Diff \>

std::count() selector.

Definition at line 182 of file for\_each\_selectors.h.

## Member Function Documentation

### template\<typename It, typename Diff\> template\<typename Val \> Diff \_\_gnu\_parallel::count\_selector\< It, Diff \>::operator() (Val &v, Iti)` [inline]`

Functor execution. **Parameters:**

*v* Current value. \
 *i* Iterator referencing object.

**Returns:**

1 if count, 0 if does not count.

Definition at line 190 of file for\_each\_selectors.h.

## Member Data Documentation

### template\<typename It \> It \_\_gnu\_parallel::generic\_for\_each\_selector\< It \>::finish\_iterator` [inherited]`

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

Definition at line 48 of file for\_each\_selectors.h.

## Author

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