33 #include "boost/algorithm/clamp.hpp"
49 template<
typename dtype>
50 dtype
clip(dtype inValue, dtype inMinValue, dtype inMaxValue)
54 return boost::algorithm::clamp(inValue, inMinValue, inMaxValue,
55 [](dtype lhs, dtype rhs) noexcept ->
bool
73 template<
typename dtype>
76 return inArray.
clip(inMinValue, inMaxValue);