| 169 | } |
| 170 | |
| 171 | bool is_trivial_parameter(int key) { |
| 172 | auto& parameter_information = get_parameter_information(); |
| 173 | auto it = parameter_information.trivial_map.find(key); |
| 174 | if (it != parameter_information.trivial_map.end()) { |
| 175 | return it->second; |
| 176 | } |
| 177 | throw ValueError(format("Unable to match the key [%d: %s] in is_trivial_parameter", key, get_parameter_information(key, "short").c_str())); |
| 178 | } |
| 179 | |
| 180 | std::string get_parameter_information(int key, std::string_view info) { |
| 181 | const std::map<int, std::string>* M = nullptr; |
no test coverage detected