How-to guides¶
This section provides detailed instructions for various common tasks that come up in the course of using the library. Here’s a summary of what you’ll find.
-
Upgrade Au. Learn how to keep your project up to date with the latest version of Au, including how our “future proof” releases can make those upgrades more incremental and painless.
-
Quantity template parameters. How to use a
Quantity
value as a template parameter, emulating C++20’s expanded support for new kinds of “non-type template parameters” (NTTPs). -
New units. How to add a new unit of measure that the library doesn’t include.
-
New constants. How to add a custom physical constant.
-
New dimensions. How to add a new, independent base dimension.
-
Forward declarations. How to use the forward declarations provided by the library.
-
Inter-library Interoperation. How to set up automatic correspondence between equivalent types in Au and any other units library.
- nholthaus/units. How to use the ready-made interoperability with the nholthaus/units library.