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

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

#include <mpi_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::internal::max_impl< T >

Wrapper struct for std::max.

Other than the operators defined in <functional> like std::plus, std::max is a function and not a function object. To enable template matching for detection of builtin MPI operations we therefore need to wrap it. The actual implementation is used in case that the operation is a builtin operation for the given datatype.

Template Parameters
Tthe type of the operands

Member Function Documentation

◆ operator()()

template<typename T >
constexpr T kamping::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
Returns
the maximum

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