|
Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
|
units representing time values More...
#include <units/core.h>Go to the source code of this file.
Namespaces | |
| namespace | units |
| Unit Conversion Library namespace. | |
| namespace | units::time |
| namespace for unit types and containers representing time values | |
Macros | |
| #define | units_time_h_ |
| #define | UNIT_ADD_WITH_PLURAL_TAG(namespaceName, namePlural, abbreviation, ...) |
| Like UNIT_ADD, but WITHOUT the unit constant, whose name would collide with the abbreviation, e.g. | |
Functions | |
| units::UNIT_ADD_STRONG_CONVERSION_FACTOR (time, minutes, conversion_factor< std::ratio< 60 >, seconds_ >) UNIT_ADD_UNIT_DEFINITION(time | |
| conversion_factor< std::ratio< 60 >, seconds_ > | units::UNIT_ADD_NAME (time, minutes, min) UNIT_REGISTER_NAMED_CLASS(time |
Variables | |
| units::minutes | |
units representing time values
| #define UNIT_ADD_WITH_PLURAL_TAG | ( | namespaceName, | |
| namePlural, | |||
| abbreviation, | |||
| ... ) |
Like UNIT_ADD, but WITHOUT the unit constant, whose name would collide with the abbreviation, e.g.
minutes with abbreviation min (the constant min clashes).
Registers everything UNIT_ADD does except UNIT_ADD_CONSTANT: the strong conversion factor and the named-class registration are included so name()/abbreviation() resolve and diagnostics print the friendly type, exactly as for a UNIT_ADD unit.