mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
refactor: small unit_concepts.h
cleanup
This commit is contained in:
@@ -146,6 +146,9 @@ template<Unit From, Unit To>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename... Expr>
|
||||||
|
struct derived_unit;
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
struct unit_interface {
|
struct unit_interface {
|
||||||
|
@@ -60,13 +60,6 @@ MP_UNITS_EXPORT struct one;
|
|||||||
MP_UNITS_EXPORT template<typename T>
|
MP_UNITS_EXPORT template<typename T>
|
||||||
concept PrefixableUnit = Unit<T> && is_derived_from_specialization_of_v<T, named_unit>;
|
concept PrefixableUnit = Unit<T> && is_derived_from_specialization_of_v<T, named_unit>;
|
||||||
|
|
||||||
template<typename... Expr>
|
|
||||||
struct derived_unit;
|
|
||||||
|
|
||||||
MP_UNITS_EXPORT template<symbol_text Symbol, Magnitude auto M, PrefixableUnit auto U>
|
|
||||||
requires(!Symbol.empty())
|
|
||||||
struct prefixed_unit;
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template<Unit U>
|
template<Unit U>
|
||||||
|
Reference in New Issue
Block a user