C++编程原创心得
鸿哲闲居
关注 嵌入式软件开发、人工智能、机器学习、粗糙集,主要研究移动机器人视觉SLAM,三维重建,回环控制,object跟踪
展开
-
【C++编程】std::unordered_map的value值不能是const成员 ?
C++ map的value值设定是否能设置为const原创 2022-09-28 11:30:22 · 420 阅读 · 1 评论 -
std::map emplace an object with a constructor of more than one parameters
// map::emplace #include <iostream> #include <map> class Test { public: Test(int i, int k) : ii(i), kk(k) { std::cout << "ii = " << ii << ", kk = " << kk << std::endl; } Test(const Test& other) : i.原创 2021-12-23 10:50:27 · 197 阅读 · 0 评论