SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::dimensions::runtime::RuntimeIdentifiedThermodynamicQuantity Concept Reference

#include <concepts.hpp>

Concept definition

template<typename Quantity>
requires {{Quantity::identifier} -> std::convertible_to<std::string_view>; } &&
(std::string_view{Quantity::identifier}.size() > 0)
Is compile-time true of the QuantityCandidate can have any const / volatile stripped and if its deriv...
Definition quantities.hpp:65

Detailed Description

@breif Concept to limit template arguments such that they are compatible with the expected ThermodynamicQuantity interface. Specifically, a valid type must contain a member identifier which can be converted to std::string_view and that member, when converted to a string_view must be longer than 0 length.