NW4F Sys
Loading...
Searching...
No Matches
ut_Inlines.h
Go to the documentation of this file.
1#ifndef NW_UT_INLINES_H_
2#define NW_UT_INLINES_H_
3
4#include <nw/types.h>
5
6namespace nw { namespace ut {
7
8template <typename T>
10Clamp(T x, T low, T high)
11{
12 return x > high ? high : (x < low ? low : x);
13}
14
15} } // namespace nw::ut
16
17#endif // NW_UT_INLINES_H_
Definition ut_CriticalSection.h:6
NW_INLINE T Clamp(T x, T low, T high)
Definition ut_Inlines.h:10
Definition math_Constant.cpp:5
#define NW_INLINE
Definition types.h:14