KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
Loading...
Searching...
No Matches
kamping::measurements::internal::Max Struct Reference

Object encapsulating a maximum operation on a given range of objects. More...

#include <measurement_utils.hpp>

Static Public Member Functions

template<typename Container >
static auto compute (Container const &container)
 Apply a maximum computation of the given range of objects.
 

Detailed Description

Object encapsulating a maximum operation on a given range of objects.

Member Function Documentation

◆ compute()

template<typename Container >
static auto kamping::measurements::internal::Max::compute ( Container const & container)
inlinestatic

Apply a maximum computation of the given range of objects.

Template Parameters
ContainerType of container storing the objects.
Parameters
containerContainer storing objects on which the aggregation operation is applied.
Returns
std::optional which either contains maximum of elements in the container or is empty if container is empty.

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