chsvlib
chsv helper source code
minmax< T, values > Struct Template Reference

Statically chooses minimum and maximum values from a set of values. More...

#include <chsvmath.h>

Static Public Attributes

static const T minvalue = implementation
 A minimum of the values.
 
static const T maxvalue = implementation
 A maximum of the values.
 

Detailed Description

template<class T, T... values>
struct Chusov::Math::minmax< T, values >

Statically chooses minimum and maximum values from a set of values.

Template Parameters
Tis a type of values in the set of template parameters to choose from.
values...Values to choose from.

Usage:

minmax<int, -1, 16>::minvalue; //-1
minmax<int, -1, 16>::maxvalue; //16
static const T minvalue
A minimum of the values.
Definition: chsvmath.h:213
static const T maxvalue
A maximum of the values.
Definition: chsvmath.h:215

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