const key type of std::map making the object const-qualified

前端 未结 0 1064
醉话见心
醉话见心 2021-01-18 11:07

In the following snippet, making the key const causes the result of find() to be a const_iterator and the value in the iterator is also const.

I can understand having

相关标签:
回答
  • 消灭零回复
提交回复
热议问题