| 403 | |
| 404 | template<typename M, typename K, typename V> |
| 405 | miniscript::Availability MsLookupHelper(const M& map, const K& key, V& value) |
| 406 | { |
| 407 | auto it = map.find(key); |
| 408 | if (it != map.end()) { |
| 409 | value = it->second; |
| 410 | return miniscript::Availability::YES; |
| 411 | } |
| 412 | return miniscript::Availability::NO; |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * Context for solving a Miniscript. |
no test coverage detected