| 127 | } |
| 128 | |
| 129 | std::optional<float> parse_float_option( |
| 130 | const std::unordered_map<std::string, std::string> & options, |
| 131 | std::initializer_list<std::string_view> keys) { |
| 132 | if (const auto match = find_option_match(options, keys)) { |
| 133 | return parse_float_value(match->value, match->key); |
| 134 | } |
| 135 | return std::nullopt; |
| 136 | } |
| 137 | |
| 138 | std::optional<float> parse_finite_float_option( |
| 139 | const std::unordered_map<std::string, std::string> & options, |
no test coverage detected