UnitContainers(3)
| UnitContainers(3) | Unit Conversion and Dimensional Analysis Library | UnitContainers(3) |
NAME
UnitContainers - Unit Containers
- Defines a series of classes which contain dimensioned values.
SYNOPSIS
Classes
class units::unit_t< Units, T, NonLinearScale >
Container for values which represent quantities of a given unit. struct
units::unit_value_t< Units, Num, Denom >
Stores a rational unit value as a compile-time constant.
Functions
template<class UnitType , typename T , class =
std::enable_if_t<std::is_arithmetic<T>::value>> constexpr
UnitType units::make_unit (const T value) noexcept
Constructs a unit container from an arithmetic type.
Detailed Description
Defines a series of classes which contain dimensioned values.
Unit containers store a value, and support various arithmetic operations.
Function Documentation
template<class UnitType , typename T , class = std::enable_if_t<std::is_arithmetic<T>::value>> constexpr UnitType units::make_unit (const T value) [inline], [constexpr], [noexcept]
Constructs a unit container from an arithmetic type. make_unit can be used to construct a unit container from an arithmetic type, as an alternative to using the explicit constructor. Unlike the explicit constructor it forces the user to explicitly specify the units.
Template Parameters
Ty Arithmetic type.
Parameters
Author
Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.
| Wed Mar 29 2023 | Version 2.3.0 |
