chronon::params::detail
Classes
| Name | |
|---|---|
| class | chronon::params::detail::ScaledUnitBase CRTP base for scaled-unit types (Frequency, Latency, Bandwidth). |
| struct | chronon::params::detail::ScaleEntry Scale entry mapping a unit suffix to a multiplier. |
Functions
| Name | |
|---|---|
| std::string | toLower(std::string s) |
| std::pair< double, std::string > | parseValueAndUnit(const std::string & s, const char * type_name) Split a unit-suffixed numeric string into value and unit (e.g. "3GHz" -> {3.0, "GHz"}). |
Functions Documentation
function toLower
inline std::string toLower(
std::string s
)
function parseValueAndUnit
inline std::pair< double, std::string > parseValueAndUnit(
const std::string & s,
const char * type_name
)
Split a unit-suffixed numeric string into value and unit (e.g. "3GHz" -> {3.0, "GHz"}).
Exceptions:
- std::invalid_argument if the string is empty or has no numeric prefix.
Updated on 2026-07-06 at 09:03:33 +0000