Fixed the docs for clamp. Refs #10081

This commit is contained in:
Marshall Clow
2015-04-10 08:10:16 -07:00
parent ba1894bfde
commit 7f7ebc36ed

View File

@ -27,11 +27,11 @@ Note: using `clamp` with floating point numbers may give unexpected results if o
There is also a version that allows the caller to specify a comparison predicate to use instead of `operator <`. There is also a version that allows the caller to specify a comparison predicate to use instead of `operator <`.
`` ``
template<typename V> template<typename T>
V clamp ( V val, V lo, V hi ); const T& clamp ( const T& val, const T& lo, const T& hi );
template<typename V, typename Pred> template<typename T, typename Pred>
V clamp ( V val, V lo, V hi, Pred p ); const T& clamp ( const T& val, const T& lo, const T& hi, Pred p );
`` ``
The following code: `` The following code: ``