|  | Home | Libraries | People | FAQ | More | 
boost::algorithm::clamp_range
// In header: <boost/algorithm/clamp.hpp> template<typename Range, typename OutputIterator, typename Pred> boost::disable_if_c< boost::is_same< Range, OutputIterator >::value, OutputIterator >::type clamp_range(const Range & r, OutputIterator out, typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const & lo, typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const & hi, Pred p);
| Parameters: | 
 | ||||||||||
| Returns: | clamp the sequence of values [first, last) into [ lo, hi ] using the comparison predicate p. |