Defines the util::clamp function. More...
#include <config.h>
Go to the source code of this file.
Namespaces | |
namespace | util |
Various utility classes for generic programming. | |
Functions | |
template<class T > | |
T | util::clamp (const T &val, const T &min, const T &max) |
A function to clamp a value to a range. |
Defines the util::clamp function.
Definition in file clamp.h.