mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-30 12:37:15 +02:00
Fixed the docs for clamp. Refs #10081
This commit is contained in:
@ -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: ``
|
||||||
|
Reference in New Issue
Block a user