mp_units::utility::constrained::constrained

Constructors

Synopses

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

Default-constructs the wrapped value.

[[nodiscard]]
constrained() = default;
» more...

Constructs the wrapper from a value of the underlying type.

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

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
vthe value to wrap