xo-unit: + currency() named-ctor
This commit is contained in:
parent
a920d2c396
commit
32c3d8e44e
1 changed files with 8 additions and 0 deletions
|
|
@ -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 -----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue