08 2022 档案

摘要:sudo apt install gcc-9 g++-9 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /us 阅读全文
posted @ 2022-08-16 23:24 山岚2013 阅读(993) 评论(0) 推荐(0) 编辑
摘要:sudo dpkg --add-architecture i386 sudo apt install libc6:i386 libstdc++6:i386 sudo apt-get update sudo apt install libncurses5-dev lib32z1 阅读全文
posted @ 2022-08-16 23:13 山岚2013 阅读(3297) 评论(0) 推荐(0) 编辑
摘要:概念 std::ref :针对std::thread,需要把实参显式转换为引用类型; std::move :无条件把参数转换为右值;但是右值赋值给新变量时,实际还要看是否满足右值条件,如const std::string&& 赋值后,实际调用的是左值构造/赋值; std::forward :根据实参 阅读全文
posted @ 2022-08-10 21:18 山岚2013 阅读(172) 评论(0) 推荐(0) 编辑
摘要:#include <algorithm> #include <array> #include <iostream> #include <iterator> #include <random> template <class Iter> void fill_with_random_int_values 阅读全文
posted @ 2022-08-03 16:24 山岚2013 阅读(239) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示