上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 164 下一页

2021年8月3日

摘要: 将 emplace_back() 和 push_back() 中区别最大的程序拎出来看: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, std::forward<_Args>(__args)...); // empl 阅读全文
posted @ 2021-08-03 14:50 tycoon3 阅读(260) 评论(0) 推荐(0)
摘要: #include <iostream> // std::cout #include <atomic> // std::atomic #include <thread> // std::thread #include <vector> // std::vector // a simple global 阅读全文
posted @ 2021-08-03 11:49 tycoon3 阅读(2909) 评论(0) 推荐(0)
摘要: #include <iostream> int getValue () { int ii = 10; return ii; } int main() { std::cout << getValue(); return 0; } root@ubuntu:~/c++# g++ -std=c++11 ri 阅读全文
posted @ 2021-08-03 10:49 tycoon3 阅读(72) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { int n = 10; int &r1 = n; //auto推导 auto r2 = r1; r2 = 20; cout << n << ", " << r1 << ", " << r2 < 阅读全文
posted @ 2021-08-03 10:38 tycoon3 阅读(206) 评论(0) 推荐(0)

2021年8月2日

摘要: [root@bogon SOURCES]# ovs-vsctl add-br br0 [root@bogon SOURCES]# ovs-vsctl add-port br0 veth_l0 [root@bogon SOURCES]# ovs-vsctl add-port br0 veth_r0 [ 阅读全文
posted @ 2021-08-02 12:03 tycoon3 阅读(309) 评论(0) 推荐(0)

2021年7月30日

摘要: 1018 git clone https://github.com/kubernetes/ingress-nginx.git 1023 git tag --list 1025 git checkout -b controller-v0.44.0 root@ubuntu:~/nginx_ingress 阅读全文
posted @ 2021-07-30 17:49 tycoon3 阅读(39) 评论(0) 推荐(0)
摘要: root@ubuntu:~/nginx_ingress# kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.44.0/deploy/static/provider/clo 阅读全文
posted @ 2021-07-30 16:38 tycoon3 阅读(3376) 评论(0) 推荐(0)
摘要: unix server root@ubuntu:~/docker# docker run -it --name debian -v /data1/unix_domain:/data1/unix_domain debian root@b1a3bef38722:/# ls bin boot data1 阅读全文
posted @ 2021-07-30 15:27 tycoon3 阅读(103) 评论(0) 推荐(0)
摘要: 1、std::async函数原型: template<class Fn, class... Args> future<typename result_of<Fn(Args...)>::type> async(launch policy, Fn&& fn, Args&&...args); 功能:第二个 阅读全文
posted @ 2021-07-30 11:14 tycoon3 阅读(733) 评论(0) 推荐(0)
摘要: 1.1 可调用对象(Callable Objects) 可调用对象有如下几种: 函数指针 具有operator()成员函数的类对象(仿函数) 可被转换为函数指针的类对象 类成员(函数)指针 以上涉及的对象可以像一个函数一样做调用操作,统称为可调用对象。现在,C++11通过提供std::functio 阅读全文
posted @ 2021-07-30 09:49 tycoon3 阅读(454) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 164 下一页

导航