rcpputils
↰ Parent directory (include/rcppmath)
include/rcppmath
Restrict a value between two bounds.
Contents
Definition (include/rcppmath/clamp.hpp)
include/rcppmath/clamp.hpp
Includes
Namespaces
Functions
cassert
Namespace rcppmath
Template Function rcppmath::clamp(const T&, const T&, const T&)
Template Function rcppmath::clamp(const T&, const T&, const T&, Compare)