mp_units::get

Returns the non-type template argument V, whose type is T

Synopsis

Declared in <mp-units/ext/type_traits.h>

template<
    typename T,
    same_as<T> auto V>
[[nodiscard]]
consteval
auto
get();

Return Value

The value of V

NOTE

The return value should not be discarded.

Template Parameters

NameDescription
TThe type that V must have
VThe non-type template argument to return