mp_units::utility::constrained::constrained

Construct from T

Synopsis

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

[[nodiscard]]
constexpr
explicit(false)
constrained(T v) noexcept;

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
vThe object to construct from