id summary reporter owner description type status milestone component version severity resolution keywords cc 3215 Clamp function olafvdspek@… Marshall Clow "A clamp function comes in handy in certain cases. Could one be added to Boost? I'm not sure which component would be most appropriate. The function may be something like this: {{{ template T clamp(T v, T a, T b) { return max(a, min(v, b)); } }}}" Feature Requests closed Boost 1.50.0 algorithm Boost 1.39.0 Problem fixed