Eric Oulashin's C++ Audio Mixer 1.0
utilFunctions.h
Go to the documentation of this file.
1#ifndef __UTIL_FUNCTIONS_H__
2#define __UTIL_FUNCTIONS_H__
3
4#include <limits>
5
6namespace 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
Definition StringUtils.cpp:6
T maxValue()
Definition utilFunctions.h:9
T minValue()
Definition utilFunctions.h:15