摘要: 今天又学到了一个关于关联容器map小技巧:通过值(Value)来寻找对应的键(Key),这个功能通过std::find_if实现,代码如下 template <class T, class U> T findKeyByValue(const U Val, const std::map<T, U>& 阅读全文
posted @ 2022-10-14 20:47 Fitanium 阅读(1435) 评论(0) 推荐(0) 编辑