mp_units::utility::width_checker::operator()

Validates that value is a nonnegative integer and returns it as unsigned long long.

Synopsis

Declared in <mp-units/utility/format.h>

template<typename T>
[[nodiscard]]
constexpr
unsigned long long
operator()(T value) const;

Return Value

value converted to unsigned long long

NOTE

The return value should not be discarded.

Parameters

NameDescription
valuethe resolved format argument to validate