KaMPIng 0.2.1
(Near) zero-overhead MPI wrapper for C++
Loading...
Searching...
No Matches
kamping::ops::internal::max_impl< T > Struct Template Reference

Wrapper struct for std::max. More...

#include <reduce_ops.hpp>

Public Member Functions

constexproperator() (T const &lhs, T const &rhs) const
 Returns the maximum of the two parameters.
 

Detailed Description

template<typename T>
struct kamping::ops::internal::max_impl< T >

Wrapper struct for std::max.

std::max is a function, not a function object. This wrapper allows template matching for builtin MPI operation detection. The <void> specialization uses type deduction.

Template Parameters
Tthe type of the operands

Member Function Documentation

◆ operator()()

template<typename T >
constexpr T kamping::ops::internal::max_impl< T >::operator() ( T const & lhs,
T const & rhs ) const
inlineconstexpr

Returns the maximum of the two parameters.

Parameters
lhsthe first operand
rhsthe second operand

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