---
name: "__gnu_parallel::__max_element_reduct"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::__max_element_reduct/3cxx"
---

# \_\_gnu\_parallel::\_\_max\_element\_reduct(3cxx)

Reduction for finding the maximum element, using a comparator.

## NAME

\_\_gnu\_parallel::\_\_max\_element\_reduct\< \_Compare, \_It \> - Reduction for finding the maximum element, using a comparator.

## SYNOPSIS

`#include <for_each_selectors.h>`

### Public Member Functions

**\_\_max\_element\_reduct** (\_Compare &\_\_c)\
 \_It **operator()** (\_It \_\_x, \_It \_\_y)\

### Public Attributes

\_Compare & **\_\_comp**\

## Detailed Description

### template\<typename \_Compare, typename \_It\>

struct \_\_gnu\_parallel::\_\_max\_element\_reduct\< \_Compare, \_It \>"Reduction for finding the maximum element, using a comparator.

## Author

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