开源使用者 标签

调用 free() 或 delete 而不是 delete[] 有什么危险吗?

2021-12-24 00:00:00 memory-management c++ new-operator free

如果 32 位整数溢出,我们可以使用 40 位结构而不是 64 位长的结构吗?

2021-12-24 00:00:00 c memory-management c++ integer-overflow

为什么在 C++14 中使用 std::bind 而不是 lambdas?

2021-12-23 00:00:00 lambda bind c++ c++14

为什么调用这个复制构造函数而不是移动构造函数?

2021-12-22 00:00:00 visual-c++ c++ c++11 copy-constructor move-constructor

带有“通用初始序列"的联合“双关语"结构:为什么 C(99+)而不是 C++ 规定了“联合类型的可见声明"?

2021-12-23 00:00:00 c struct c++ type-punning unions

为什么编译器选择 bool 而不是 string 来隐式类型转换 L""?

2021-12-22 00:00:00 visual-c++ implicit c++ explicit

为什么有人会使用 set 而不是 unordered_set?

2021-12-22 00:00:00 algorithm data-structures c++ c++11

为什么 libc++ std::vector 在内部保留三个指针而不是一个指针和两个大小?

2021-12-21 00:00:00 vector c++ stl libc++

C++ 按值而不是按位置擦除向量元素?

2021-12-21 00:00:00 vector c++ stl erase erase-remove-idiom

为什么 glGetString(GL_VERSION) 返回空/零而不是 OpenGL 版本?

2021-12-19 00:00:00 opengl c++ glut glew

为什么 gcc 编译器输出 pow(10,2) 为 99 而不是 100?

2021-12-18 00:00:00 gcc c++

如果我针对大小而不是速度进行优化,为什么 GCC 生成的代码速度会快 15-20%?

2021-12-18 00:00:00 gcc performance compiler-optimization c++ x86-64

什么 C/C++ 编译器可以使用 push pop 指令来创建局部变量,而不是仅仅增加一次 esp?

2021-12-18 00:00:00 compiler-optimization assembly c++ micro-optimization x86

何时使用 C++ 私有继承而不是组合?

2021-12-17 00:00:00 inheritance c++ composition private-inheritance strategy-pattern

对于嵌套模板,`>>` 何时成为标准 C++(而不是`> >`)?

2021-12-13 00:00:00 templates c++

我什么时候应该使用原始指针而不是智能指针?

2021-12-13 00:00:00 pointers c++ boost smart-pointers

为什么 int 指针 '++' 递增 4 而不是 1?

2021-12-13 00:00:00 pointers c c++

为什么 C++ STL 如此大量地基于模板?(而不是在*接口*上)

2021-12-12 00:00:00 oop templates c++ stl

我可以使用 if (pointer) 而不是 if (pointer != NULL) 吗?

2021-12-12 00:00:00 pointers null if-statement c++ null-pointer

为什么选择 (;;){} 而不是 while(1)?

2021-12-11 00:00:00 loops while-loop for-loop c++
  • «
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • »

友情链接: 雨伦博客   雅安论坛

京ICP备15023317号-6