摘要:
《深度探索C++对象模型》—— 2.3 返回值的初始化 & 在编译器层面做优化 阅读全文
摘要:
Rvalue References 阅读全文
摘要:
Endian 寻址 多字节对象被存储为连续的字节序列,对象的地址为所使用字节中最小的地址。 例如,假设一个类型为 int 的变量 a 的地址为 0x100,也就是说,地址表达式 &a 的值为 0x100。那么,(假设数据类型 int 为32位表示) a 的 4 个字节将被存储在内存的 0x100、0 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/2141093/202108/2141093-20210831221746967-859517232.png) ![](https://img2020.cnblogs.com/blog/2141093/202109/2141093-20210902112205661-395292092.png) 阅读全文
摘要:
g++ --help 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/2141093/202108/2141093-20210830223905488-986667018.png) 阅读全文
摘要:
Boost 官网指南 Boost C++ Libraries Boost Getting Started on Windows - 1.77.0 ① 下载 Boost.7z包 下载 .7z包 boost_1_77_0.7z ,解压至目录: C:\Program Files\boost\boost_1 阅读全文
摘要:
7-Zip https://www.7-zip.org/ 阅读全文
摘要:
HasPtrValueLike 行为像值的类 为了实现类值行为,HasPtr需要: 定义一个拷贝构造函数,完成 string data 的拷贝,而不是拷贝指针。 定义一个析构函数来释放string 。 定义一个拷贝赋值运算符来从右侧运算对象拷贝 string data ,并释放对象的旧内存。 除了定 阅读全文
摘要:
gitk gitk [<options>] [<revision range>] [--] [<path>…] 查看单个文件的变更历史 gitk -- CppPrimer/Content/Ch12_DynamicMemory/Ch12_shared_ptr_00.cpp & Other exampl 阅读全文