Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArashPartow/exprtk
/ clamp
Function
clamp
exprtk_test.cpp:3260–3263 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3258
3259
template <typename T>
3260
inline T clamp(const T& l, const T& v, const T& u)
3261
{
3262
return (v < l) ? l : ((v > u) ? u : v);
3263
}
3264
3265
template <typename T>
3266
bool run_test04()
Callers
1
func14
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected