---
name: "__gnu_parallel::__max_element_reduct"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::__max_element_reduct"
---

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

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.
