[#mp_units-clamp_to_range-operator_call] = xref:mp_units.adoc[mp_units]::xref:mp_units/clamp_to_range.adoc[clamp_to_range]::operator() :relfileprefix: ../../ :mrdocs: Clamps `v` to [`min`, `max`]. == Synopsis Declared in `<mp‐units/overflow_policies.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/Quantity-0c.adoc[Quantity] V> constexpr V operator()(V v) const; ---- == Return Value `v` if it is within bounds, otherwise the nearest boundary == Parameters [cols="1,4"] |=== | Name| Description | *v* | the value to clamp |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#