sources/basics.h

changeset 17
50341dec533e
parent 15
33da84af4bba
child 27
089e37c0887e
equal deleted inserted replaced
16:33bac54867bf 17:50341dec533e
61 61
62 template<typename Signature> 62 template<typename Signature>
63 using Function = std::function<Signature>; 63 using Function = std::function<Signature>;
64 64
65 FUNCTION print_to_console (const String& a) -> void; 65 FUNCTION print_to_console (const String& a) -> void;
66
67 template<typename T> inline FUNCTION
68 clamp (T a, T b, T c) -> T
69 {
70 return (a < b) ? b : (a > c) ? c : a;
71 }

mercurial