#include <MRMinMaxArg.h>
Public Member Functions | |
auto | minPair () const |
auto | maxPair () const |
void | include (const std::pair< T, I > &p) |
changes min(Arg) and max(Arg) if necessary to include given point | |
void | include (T v, I arg) |
changes min(Arg) and max(Arg) if necessary to include given point | |
void | include (const MinMaxArg &s) |
changes min(Arg) and max(Arg) if necessary to include given segment | |
Public Attributes | |
T | min = std::numeric_limits<T>::max() |
T | max = std::numeric_limits<T>::lowest() |
I | minArg |
I | maxArg |
minimum and maximum of some vector with values of type T, and the indices of where minimum and maximum are reached of type I
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
T MR::MinMaxArg< T, I >::max = std::numeric_limits<T>::lowest() |
I MR::MinMaxArg< T, I >::maxArg |
T MR::MinMaxArg< T, I >::min = std::numeric_limits<T>::max() |
I MR::MinMaxArg< T, I >::minArg |