xo-unit: + currency() named-ctor

This commit is contained in:
Roland Conybeare 2024-06-10 12:03:22 -04:00
commit 32c3d8e44e

View file

@ -974,6 +974,14 @@ namespace xo {
} /*namespace qty*/
namespace qty {
// ----- currency -----
/** create quantity representing @p x units of currency, with compile-time unit representation **/
template <typename Repr>
inline constexpr auto currency(Repr x) { return quantity<u::currency, Repr>(x); }
}
namespace qty {
// ----- volatility -----