Quantity Factory Functions
Convenience functions for creating quantities with compile-time units
Context
Introduction
#include <xo/unit/quantity.hpp>
Mass
Distance
-
template<typename Repr>
inline constexpr auto xo::qty::qty::inches(Repr x) create quantity representing
x
inches of distance, with compile-time unit representation
-
template<typename Repr>
inline constexpr auto xo::qty::qty::feet(Repr x) create quantity representing
x
feet of distance, with compile-time unit representation
Time
-
template<typename Repr>
inline constexpr auto xo::qty::qty::seconds(Repr x) create quantity representing
x
seconds of time, with compile-time unit representation
-
template<typename Repr>
inline constexpr auto xo::qty::qty::minutes(Repr x) create quantity representing
x
minutes of time, with compile-time unit representation
-
template<typename Repr>
inline constexpr auto xo::qty::qty::hours(Repr x) create quantity representing
x
hours of time, with compile-time unit representation