1 2 3 4 5 ··· 7 下一页

2022年12月30日

git如何添加子模块

摘要: ①克隆父仓库$ git clone https://github.com/a/a.git 本地路径②添加子仓库$ git submodule add https://github.com/a/b.git③push到父仓库$ git add .$ git commit -m ‘添加子模块’$ git 阅读全文

posted @ 2022-12-30 08:59 奔跑吧,蜗牛! 阅读(437) 评论(0) 推荐(0) 编辑

git如何删除子模块

摘要: 删除子模块:(分4步走) 1) $ git rm --cached [path] 根据路径删除子模块的记录 2) 编辑“.gitmodules”文件,将子模块的相关配置节点删除掉 清理子模块配置 3) 编辑“ .git/config”文件,将子模块的相关配置节点删除掉 清理子模块配置 4) 手动删除 阅读全文

posted @ 2022-12-30 08:52 奔跑吧,蜗牛! 阅读(1923) 评论(0) 推荐(0) 编辑

2022年10月11日

C++之可变模板参数打印及Pari的逐块式构造(Piecewise Construction)

摘要: class Foo { public: Foo(tuple<int, double>) { cout << "Foo(tuple<int, double>)"<< endl; } template <typename T> void print(T t) { cout << t << endl; } 阅读全文

posted @ 2022-10-11 10:25 奔跑吧,蜗牛! 阅读(86) 评论(0) 推荐(0) 编辑

2022年8月4日

三次握手和四次挥手的通俗理解

摘要: 三次握手 四次挥手 阅读全文

posted @ 2022-08-04 12:58 奔跑吧,蜗牛! 阅读(262) 评论(0) 推荐(0) 编辑

2021年9月12日

为什么拷贝构造函数的参数可以直接去访问它自己的私有成员?

摘要: 为什么拷贝构造函数的参数可以直接去访问它自己的私有成员?关于对象不能直接访问私有成员的超级大误区~_Jeff_的博客-CSDN博客 关于类成员函数中访问同类对象的私有成员 - runfeel - ITeye博客 阅读全文

posted @ 2021-09-12 09:35 奔跑吧,蜗牛! 阅读(82) 评论(0) 推荐(0) 编辑

2021年9月11日

C++之forward move源码分析

摘要: /** * @brief Forward an lvalue. * @return The parameter cast to the specified type. * * This function is used to implement "perfect forwarding". */ te 阅读全文

posted @ 2021-09-11 23:11 奔跑吧,蜗牛! 阅读(128) 评论(0) 推荐(0) 编辑

C++之forward

摘要: 不管是T&&、左值引用、右值引用,std::forward都会按照原来的类型完美转发。 forward主要解决引用函数参数为右值时,传进来之后有了变量名就变成了左值。 #include <QCoreApplication> #include <memory> #include <iostream> 阅读全文

posted @ 2021-09-11 22:27 奔跑吧,蜗牛! 阅读(2984) 评论(0) 推荐(0) 编辑

C++之不完整的数据类型释放

摘要: class Demo_Class; void do_delete(Demo_Class* p) { delete p; } class Demo_Class{ public: ~Demo_Class() { cout<<"析构"; } }; int main(int argc, char *argv 阅读全文

posted @ 2021-09-11 21:36 奔跑吧,蜗牛! 阅读(56) 评论(0) 推荐(0) 编辑

2021年9月8日

C++中typename关键字的使用方法和注意事项(好文收藏)

摘要: https://www.cnblogs.com/MrLiuZF/p/14062395.html 阅读全文

posted @ 2021-09-08 09:25 奔跑吧,蜗牛! 阅读(39) 评论(0) 推荐(0) 编辑

2021年9月7日

C++之左值引用和右值引用

摘要: 标记下,以后整理 https://blog.csdn.net/qq_39521554/article/details/88364471 https://zhuanlan.zhihu.com/p/97128024 阅读全文

posted @ 2021-09-07 22:23 奔跑吧,蜗牛! 阅读(15) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 7 下一页

导航