units_unit_value_multiply(3)

units::unit_value_multiply< U1, U2 >(3) Unit Conversion and Dimensional Analysis Library units::unit_value_multiply< U1, U2 >(3)

NAME

units::unit_value_multiply< U1, U2 > - multiplies two unit_value_t types at compile-time

SYNOPSIS

#include <units.h>

Inherits units::detail::unit_value_arithmetic< U1, U2 >, and units::detail::_unit_value_t< std::conditional< traits::is_convertible_unit< traits::unit_value_t_traits< U1 >::unit_type, traits::unit_value_t_traits< U2 >::unit_type >::value, compound_unit< squared< traits::unit_value_t_traits< U1 >::unit_type > >, compound_unit< traits::unit_value_t_traits< U1 >::unit_type, traits::unit_value_t_traits< U2 >::unit_type > >::type >.

Static Public Member Functions


static constexpr const unit_t< unit_type > value () noexcept
Value of product.

Detailed Description

template<class U1, class U2>

struct units::unit_value_multiply< U1, U2 >"multiplies two unit_value_t types at compile-time

The resulting unit will the the unit_type of U1 * U2

Template Parameters

U1 left-hand unit_value_t
U2 right-hand unit_value_t

See also

unit_value_t_traits to access information about the properties of the class, such as it's unit type and rational value.

Note

very similar in concept to std::ratio_multiply

Member Function Documentation

template<class U1 , class U2 > static constexpr const unit_t< unit_type > units::unit_value_multiply< U1, U2 >::value () [inline], [static], [constexpr], [noexcept]

Value of product. Returns the calculated value of the product of U1 and U2, in units of U1 x U2.

Returns

Value of the product in the appropriate units.

Author

Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.

Wed Mar 29 2023 Version 2.3.0