#include <cassert>
#include <functional>
#include "aikido/common/algorithm.hpp"
Go to the source code of this file.
|
template<class T , class Compare > |
const T & | aikido::common::clamp (const T &v, const T &lo, const T &hi, Compare comp) |
| If v compares less than lo, returns lo; otherwise if hi compares less than v, returns hi; otherwise returns v. More...
|
|
template<class T > |
const T & | aikido::common::clamp (const T &v, const T &lo, const T &hi) |
| Same as above, but uses std::less<T> to compare the values. More...
|
|