mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
refactor: 💥 !named_derived_unit
removed as it was not used
This commit is contained in:
@@ -161,29 +161,6 @@ struct derived_unit : downcast_dispatch<Child, detail::derived_unit<Dim, U, URes
|
|||||||
using prefix_family = no_prefix;
|
using prefix_family = no_prefix;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief A named unit with a deduced ratio
|
|
||||||
*
|
|
||||||
* Defines a new unit with a deduced ratio and the given symbol based on the recipe from the provided
|
|
||||||
* derived dimension. The number and order of provided units should match the recipe of the
|
|
||||||
* derived dimension. All of the units provided should also be a named ones so it is possible
|
|
||||||
* to create a deduced symbol text.
|
|
||||||
*
|
|
||||||
* @tparam Child inherited class type used by the downcasting facility (CRTP Idiom)
|
|
||||||
* @tparam Dim a derived dimension recipe to use for deduction
|
|
||||||
* @tparam Symbol a short text representation of the unit
|
|
||||||
* @tparam PF no_prefix or a type of prefix family
|
|
||||||
* @tparam U the unit of the first composite dimension from provided derived dimension's recipe
|
|
||||||
* @tparam URest the units for the rest of dimensions from the recipe
|
|
||||||
*/
|
|
||||||
template<typename Child, DerivedDimension Dim, basic_symbol_text Symbol, PrefixFamily PF, Unit U, Unit... URest>
|
|
||||||
requires detail::same_scaled_units<typename Dim::recipe, U, URest...>
|
|
||||||
struct named_derived_unit : downcast_dispatch<Child, detail::derived_unit<Dim, U, URest...>> {
|
|
||||||
static constexpr bool is_named = true;
|
|
||||||
static constexpr auto symbol = Symbol;
|
|
||||||
using prefix_family = PF;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief An aliased named unit
|
* @brief An aliased named unit
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user