【发布时间】:2020-06-21 07:06:33
【问题描述】:
我有一个unordered_map<char, mystruct> h。
如果h 不包含密钥x,这会返回什么?
mystruct ms = h['x'];
【问题讨论】:
-
简单回答:试试看!第二简单:阅读the documentation。
-
I read but couldn't understand. 它只是说如果值不存在则添加,但我不明白它返回的内容。
标签: c++ unordered-map