开源使用者
标签
使用 C++ boost::split 拆分字符串而不拆分带引号的文本
2021-12-24 00:00:00
split
c++
boost
将 std::variant 与递归一起使用,而不使用 boost::recursive_wrapper
2021-12-24 00:00:00
c++
boost
c++17
使用向量<char>作为缓冲区而不在 resize() 上初始化它
2021-12-24 00:00:00
c++
c++11
boost
为什么在 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
在 OpenGL 中绘制球体而不使用 gluSphere()?
2021-12-19 00:00:00
geometry
opengl
c++
为什么 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
模拟鼠标点击而不移动光标
2021-12-18 00:00:00
function
windows
button
winapi
c++
什么 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
递归地传递一个字符串而不需要娱乐
2021-12-16 00:00:00
递归
string
c++
char-pointer
construction
为什么“A<0>=0"中的模板id由于大于或等于运算符“>="而不能在没有空间的情况下编译?
2021-12-13 00:00:00
language-lawyer
templates
c++
c++11
为什么允许嵌套类模板的部分特化,而不允许完全特化?
2021-12-13 00:00:00
templates
metaprogramming
c++
«
28
29
30
31
32
33
34
35
36
37
»