Clamps v to zero if it is negative.

Synopsis

Declared in <mp‐units/overflow_policies.h>

template<Quantity V>
constexpr
V
operator()(V v) const;

Return Value

v if it is non‐negative, otherwise zero

Parameters

Name

Description

v

the value to clamp

Created with MrDocs