| 34 | */ |
| 35 | template<class Map, class Value> |
| 36 | inline void mapSet(Map& map, std::string_view key, const Value& value) |
| 37 | { |
| 38 | auto it = map.find(key); |
| 39 | if (it == map.end()) |
| 40 | map.emplace(key, value); |
| 41 | else |
| 42 | it->second = value; |
| 43 | } |
| 44 | |
| 45 | } // namespace MyGUI |
| 46 |
no test coverage detected