mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 10:57:16 +02:00
Whitespace cleanup
This commit is contained in:
@ -92,8 +92,8 @@ struct dim_power : derived_dimension<Child, U, exp<E, 1>, exp<T, -1>> {};
|
||||
template<typename Child, Unit U, DimensionOf<dim_power> P, DimensionOf<dim_electric_current> C>
|
||||
struct dim_voltage : derived_dimension<Child, U, exp<P, 1>, exp<C, -1>> {};
|
||||
|
||||
template <typename Child,Unit U, DimensionOf<dim_voltage> V, DimensionOf<dim_electric_current> C>
|
||||
struct dim_resistance : derived_dimension<Child,U, exp<V, 1>, exp<C , -1>> {};
|
||||
template <typename Child, Unit U, DimensionOf<dim_voltage> V, DimensionOf<dim_electric_current> C>
|
||||
struct dim_resistance : derived_dimension<Child,U, exp<V, 1>, exp<C, -1>> {};
|
||||
|
||||
template<typename Child, Unit U, DimensionOf<dim_time> T, DimensionOf<dim_electric_current> C>
|
||||
struct dim_electric_charge : derived_dimension<Child, U, exp<T, 1>, exp<C, 1>> {};
|
||||
|
@ -42,15 +42,15 @@ using resistance = quantity<dim_resistance, U, Rep>;
|
||||
|
||||
inline namespace literals {
|
||||
|
||||
//R
|
||||
// R
|
||||
constexpr auto operator""_R(unsigned long long l) { return resistance<ohm, std::int64_t>(l); }
|
||||
constexpr auto operator""_R(long double l) { return resistance<ohm, long double>(l); }
|
||||
|
||||
//mR
|
||||
// mR
|
||||
constexpr auto operator""mR(unsigned long long l) { return resistance<milliohm, std::int64_t>(l); }
|
||||
constexpr auto operator""mR(long double l) { return resistance<milliohm, long double>(l); }
|
||||
|
||||
//kR
|
||||
// kR
|
||||
constexpr auto operator""kR(unsigned long long l) { return resistance<kiloohm, std::int64_t>(l); }
|
||||
constexpr auto operator""kR(long double l) { return resistance<kiloohm, long double>(l); }
|
||||
|
||||
|
Reference in New Issue
Block a user