MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MaxArg< T, I > Struct Template Reference

#include <MRMinMaxArg.h>

Public Member Functions

auto asPair () const
 
void include (const std::pair< T, I > &p)
 changes val and arg if given point is larger
 
void include (T testVal, I testArg)
 changes val and arg if given point is larger
 
void include (const MaxArg &s)
 changes val and arg if given point is larger
 

Public Attributes

val = std::numeric_limits<T>::lowest()
 
arg
 

Detailed Description

template<typename T, typename I>
struct MR::MaxArg< T, I >

maximum of some elements of type T, and the index of where maximum is reached of type I

Member Function Documentation

◆ asPair()

template<typename T , typename I >
auto MR::MaxArg< T, I >::asPair ( ) const
inline

◆ include() [1/3]

template<typename T , typename I >
void MR::MaxArg< T, I >::include ( const MaxArg< T, I > & s)
inline

changes val and arg if given point is larger

◆ include() [2/3]

template<typename T , typename I >
void MR::MaxArg< T, I >::include ( const std::pair< T, I > & p)
inline

changes val and arg if given point is larger

◆ include() [3/3]

template<typename T , typename I >
void MR::MaxArg< T, I >::include ( T testVal,
I testArg )
inline

changes val and arg if given point is larger

Member Data Documentation

◆ arg

template<typename T , typename I >
I MR::MaxArg< T, I >::arg

◆ val

template<typename T , typename I >
T MR::MaxArg< T, I >::val = std::numeric_limits<T>::lowest()

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