![]() |
Home | Libraries | People | FAQ | More |
boost::algorithm::is_clamped
// In header: <boost/algorithm/is_clamped.hpp> template<typename T, typename Pred> BOOST_CXX14_CONSTEXPR bool is_clamped(T const & val, typename boost::type_identity< T >::type const & lo, typename boost::type_identity< T >::type const & hi, Pred p);
Parameters: |
|
||||||||
Returns: |
true if value "val" is in the range [ lo, hi ] using the comparison predicate p. If p ( val, lo ) return false. If p ( hi, val ) return false. Otherwise, returns true. |