unordered_map<char, char> pairs = { {')', '('}, {']', '['}, {'}', '{'}
时间: 2024-01-24 18:01:37 浏览: 138
两个数组的交集 II(unorder_map)1
};This is an example of how to initialize an unordered map in C++ using an initializer list. The map is called "pairs" and contains mappings between closing and opening brackets. For example, the mapping for ')' is to the corresponding opening bracket '('. The curly braces {} contain the key-value pairs separated by commas.
阅读全文