9 #ifndef LARDATAALG_UTILITIES_QUANTITIES_FHICL_H 10 #define LARDATAALG_UTILITIES_QUANTITIES_FHICL_H 22 #include <string_view> 45 template <
typename... Args>
46 void decode(std::any
const& src, Quantity<Args...>& q);
59 template <
typename... Args>
70 template <
typename... Args>
73 using quantity_t =
Quantity<Args...>;
78 q = util::quantities::makeQuantity<quantity_t>(s);
83 template <
typename... Args>
91 #endif // LARDATAALG_UTILITIES_QUANTITIES_FHICL_H ::fhicl::detail::ps_atom_t encode(Interval< Args... > const &iv)
Encodes a quantity interval into a FHiCL parameter set atom.
Infrastructure for the quantities library.
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.
A value measured in the specified unit.
::fhicl::detail::ps_atom_t encode(Quantity< Args... > const &q)
Encodes a quantity into a FHiCL parameter set atom.
void decode(std::any const &src, Interval< Args... > &iv)
Decodes an interval.
Numeric variable proxies with embedded unit of measurement.
Functions pulling in STL customization if available.
void decode(std::any const &src, Quantity< Args... > &q)
Decodes a quantity.