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

#include <MRMesh/MRMinMaxArg.h>

Public Member Functions

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

Public Attributes

val = std::numeric_limits<T>::max()
I arg

Detailed Description

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

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


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