| 163 | // |
| 164 | template <typename Map, typename Splitter> |
| 165 | void AppendToMap(Map* m, Splitter splitter) { |
| 166 | Map tmp = splitter; // Calls implicit conversion operator. |
| 167 | for (typename Map::const_iterator it = tmp.begin(); it != tmp.end(); ++it) { |
| 168 | (*m)[it->first] = it->second; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | template <typename Splitter> |
| 173 | void AppendToImpl(map<string, string>* map_container, Splitter splitter) { |
no test coverage detected