Associative array/Merging: Difference between revisions
m
Reformatted to reduce line count
m (Reformatted to reduce line count) |
|||
Line 172:
template<typename map_type>
map_type merge(const map_type& original, const map_type& update) {
map_type result(update);
result.insert(original.begin(), original.end());
Line 179 ⟶ 178:
}
int main() {
typedef std::map<std::string, std::string> map;
map original{
|