34 #include "boost/algorithm/clamp.hpp"
50 template<
typename dtype>
51 dtype
clip(dtype inValue, dtype inMinValue, dtype inMaxValue)
55 return boost::algorithm::clamp(inValue, inMinValue, inMaxValue,
56 [](dtype lhs, dtype rhs) noexcept ->
bool
74 template<
typename dtype>
77 return inArray.
clip(inMinValue, inMaxValue);