Eric Oulashin's C++ Audio Mixer
1.0
home
erico
projects
audio_mixer_cpp
code
common
utilFunctions.h
Go to the documentation of this file.
1
#ifndef __UTIL_FUNCTIONS_H__
2
#define __UTIL_FUNCTIONS_H__
3
4
#include <limits>
5
6
namespace
EOUtils
7
{
8
// Returns the highest positive value of a numeric type.
9
template
<
typename
T> T
maxValue
()
10
{
11
return
std::numeric_limits<T>::max();
12
}
13
14
// Returns the lowest value of a numeric type.
15
template
<
typename
T> T
minValue
()
16
{
17
return
std::numeric_limits<T>::min();
18
}
19
}
20
21
#endif
EOUtils
Definition
StringUtils.cpp:6
EOUtils::maxValue
T maxValue()
Definition
utilFunctions.h:9
EOUtils::minValue
T minValue()
Definition
utilFunctions.h:15
Generated by
1.15.0