Skip to content

mp_units::quantity_like_traits<std::chrono::duration<Rep, Period>>::to_numerical_value

Synopsis

Declared in <mp-units/systems/si/chrono.h>

[[nodiscard]] constexpr static rep to_numerical_value(T const& q) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless std::is_nothrow_copy_constructible_v<rep>.

Return Value

Note

The return value should not be discarded.