Unit Conversion and Dimensional Analysis Library  2.3.0
A compile-time c++14 unit conversion library
Static Public Member Functions | List of all members
units::unit_value_power< U1, power > Struct Template Reference

raises unit_value_to a power at compile-time More...

#include <units.h>

Inheritance diagram for units::unit_value_power< U1, power >:

Static Public Member Functions

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

Detailed Description

template<class U1, int power>
struct units::unit_value_power< U1, power >

raises unit_value_to a power at compile-time

The resulting unit will the unit_type of U1 squared

Template Parameters
U1unit_value_t to take the exponentiation of.
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 units::math::pow

Member Function Documentation

◆ value()

template<class U1 , int power>
static constexpr const unit_t<unit_type> units::unit_value_power< U1, power >::value ( )
inlinestaticconstexprnoexcept

Value of exponentiation.

Returns the calculated value of the exponentiation of U1, in units of U1^power.

Returns
Value of the exponentiation in the appropriate units.

The documentation for this struct was generated from the following file: