feat: quantity_point

This commit is contained in:
Johel Ernesto Guerrero Peña authored and Mateusz Pusz committed 2020-06-17 15:31:22 +02:00
1 parent 75274e13ca
commit 75119eef3f
6 files changed
+561

No files matched your search

+11
View File
@@ -221,6 +221,9 @@ namespace detail {
template<typename T>
inline constexpr bool is_quantity = false;
template<typename T>
inline constexpr bool is_quantity_point = false;
} // namespace detail
/**
@@ -231,6 +234,14 @@ inline constexpr bool is_quantity = false;
template<typename T>
concept Quantity = detail::is_quantity<T>;
/**
* @brief A concept matching all quantity points in the library.
*
* Satisfied by all instantiations of :class:`quantity_point`.
*/
template<typename T>
concept QuantityPoint = detail::is_quantity_point<T>;
// WrappedQuantity
namespace detail {