Global namespace

Namespaces

Name
mp_units

mp_units namespace

Types

Name Description
absolute_point_origin
base_dimension A dimension of a base quantity
basic_fixed_string A compile-time fixed string
binomial_distribution
cartesian_vector
cauchy_distribution
chi_squared_distribution
common_unit Measurement unit for an accumulation of two quantities of different units
delta_
derived_dimension A dimension of a derived quantity
derived_quantity_spec A specification of a derived quantity
derived_unit Measurement unit for a derived quantity
dimension_one Dimension one
dimension_symbol_formatting
dimensionless Quantity of dimension one
discrete_distribution
exponential_distribution
extreme_value_distribution
fisher_f_distribution
gamma_distribution
geometric_distribution
is_kind
kind_of_
kind_of_<Q>
lognormal_distribution
mag_constant
named_unit A named unit
named_unit<Symbol> Specialization for a unit that can be reused by several base quantities
named_unit<Symbol, U> Specialization for unit of a specified base quantity
named_unit<Symbol, U, QS> Specialization for a unit with special name valid only for a specific quantity
named_unit<Symbol, U, QS, PO>
negative_binomial_distribution
normal_distribution
one Unit one
parts_per_million
per Type list type storing the list of components with negative exponents
per_mille
percent
pi
piecewise_constant_distribution
piecewise_linear_distribution
point_
poisson_distribution
power Type container for exponents with ratio different than 1
prefixed_unit A prefixed unit
quantity A quantity
quantity_like_traits Provides support for external quantity-like types
quantity_point A quantity point
quantity_point_like_traits Provides support for external quantity point-like types
quantity_spec
quantity_spec<QS, Args...>
quantity_spec<QS, Eq, Args...>
reference Quantity reference type
relative_point_origin
representation_values A type trait that defines zero, one, min, and max for a representation type
scaled_unit Unit being a scaled version of another unit
student_t_distribution
symbol_text A symbol text representation
system_reference System-specific reference
uniform_int_distribution
uniform_real_distribution
unit_symbol_formatting
weibull_distribution
zeroth_point_origin_
conditional
expr_type
fixed_string
fixed_u16string
fixed_u32string
fixed_u8string
fixed_wstring
is_same
quantity_values
text_encoding
value_type_t
wrapped_type_t

Enums

Name Description
character_set
quantity_character Quantity character
unit_symbol_separator
unit_symbol_solidus

Functions

Name Description
abs Computes the absolute value of a quantity
castable
cbrt cbrt overloads
ceil Computes the smallest quantity with integer representation and unit type To with its number not less than q
contains
cubic Computes the cubic power of a unit
default_point_origin
dimension_symbol
dimension_symbol_to
epsilon Returns the epsilon of the quantity
exp Computes Euler's raised to the given power
explicitly_convertible
floor Computes the largest quantity with integer representation and unit type To with its number not greater than q
fma fma overloads
fmod Computes the floating-point remainder of the division operation x / y.
get
get_canonical_unit
get_common_quantity_spec
get_common_reference
get_common_unit
get_kind
get_quantity_spec
get_unit
hypot hypot overloads
implicitly_convertible
interconvertible
inverse Computes the inverse of a quantity in a provided unit
is_eq_zero
is_gt_zero
is_gteq_zero
is_lt_zero
is_lteq_zero
is_neq_zero
isfinite isfinite overloads
isinf isinf overloads
isnan isnan overloads
lerp Linear interpolation or extrapolation
magnitude
midpoint Computes the midpoint of two points
operator% Modulus operators
operator* Multiplication operators
operator+ Addition operators
operator- Subtraction operators
operator/ Division operators
pow pow overloads
quantity_cast quantity_cast overloads
remainder Computes the IEEE remainder of the floating point division operation x / y.
round Computes the nearest quantity with integer representation and unit type To to q
sqrt sqrt overloads
square Computes the square power of a unit
swap
unit_symbol
unit_symbol_to
unit_vector
value_cast value_cast overloads
operator<< Stream insertion operators
operator== Equality operators
operator<=> Three-way comparison operators

Variables

Name Description
absolute
delta
dimension_one
dimensionless Quantity of dimension one
disable_real //////////// REAL SCALAR ///////////////
disable_real<bool>
imag
is_complex
is_derived_from_specialization_of
is_derived_from_specialization_of_v
is_kind
is_same_v
is_same_v<T, T>
is_scalar
is_specialization_of
is_specialization_of<Type<Params...>, Type>
is_specialization_of_v
is_specialization_of_v<Type<Params...>, Type>
is_tensor
is_value_preserving Specifies if a specific conversion between two types preserves the value
is_vector
kind_of
known_first_factor /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
mag
mag_pi
mag_power Create a Magnitude which is some rational number raised to a rational power.
mag_ratio
magnitude
modulus
one
parts_per_million
per_mille
percent
pi
point
ppm
real
space_before_unit_symbol Puts a space ' ' sign before a unit symbol
treat_as_floating_point Specifies if a value of a type should be treated as a floating-point value
zeroth_point_origin
π

Concepts

Name Description
AssociatedUnit A concept matching all units that can be used as quantity references
Dimension A concept matching all dimensions in the library.
DimensionOf A concept checking if the argument is of the same dimension.
PointOrigin A concept matching all quantity point origins in the library
PointOriginFor A concept matching all quantity point origins for a specified quantity type in the library
PrefixableUnit A concept to be used to define prefixes for a unit
Quantity A concept matching all quantities in the library
QuantityLike A concept matching all external quantities like types
QuantityOf A concept matching all quantities of the provided quantity spec
QuantityPoint A concept matching all quantity points in the library
QuantityPointLike A concept matching all external quantity point like types
QuantityPointOf A concept matching all quantity points of the provided property
QuantitySpec
QuantitySpecOf A concept matching all quantity specifications of a provided quantity spec value
Reference A concept matching all references in the library.
ReferenceOf A concept matching all references of the provided quantity spec
RepresentationOf
Unit A concept matching all unit types in the library
UnitMagnitude Concept to detect whether T is a valid UnitMagnitude.
UnitOf A concept matching all units associated with the provided quantity spec

Deduction Guides

Name
basic_fixed_string<CharT, N - 1>
basic_fixed_string<CharT, 1 + sizeof...(Rest)>
basic_fixed_string<CharT, N>
cartesian_vector<std::common_type_t<Arg, Args...>>
quantity<quantity_like_traits<Q>::reference, quantity_like_traits<Q>::rep>
quantity<R{}, Value>
quantity_point<Q::reference, default_point_origin(Q::reference), Q::rep>
quantity_point<quantity_point_like_traits<QP>::reference, quantity_point_like_traits<QP>::point_origin, quantity_point_like_traits<QP>::rep>
quantity_point<Q::reference, PO{}, Q::rep>
symbol_text<1, 1>
symbol_text<N, N>
symbol_text<N - 1, N - 1>
symbol_text<N, M>
symbol_text<N - 1, M - 1>

Created with MrDocs