Checks that v is non‐negative and reports a violation otherwise.

Synopsis

Declared in <mp‐units/overflow_policies.h>

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

Return Value

v unchanged, if it is non‐negative

Parameters

Name

Description

v

the value to check

Created with MrDocs