| 42 | |
| 43 | template <class K, class DefaultValue> |
| 44 | inline auto Value(const K& key, DefaultValue&& defaultValue) const { |
| 45 | auto found = FindPtr(key); |
| 46 | return found ? *found : std::forward<DefaultValue>(defaultValue); |
| 47 | } |
| 48 | |
| 49 | template <class K, class V> |
| 50 | inline const V& ValueRef(const K& key, V& defaultValue Y_LIFETIME_BOUND) const Y_LIFETIME_BOUND { |
no test coverage detected