C++
choumin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用__declspec(property())设置数据成员的get/put函数
使用 __declspec(property()) 设置数据成员的 get / put 函数原创 2026-03-01 12:01:19 · 91 阅读 · 0 评论 -
C++ 17支持的inline变量的用法
C++ 17 支持的 inline 变量的用法原创 2026-03-01 10:57:43 · 888 阅读 · 0 评论 -
使用空指针对象调用成员函数
使用空指针对象调用成员函数的不同情况原创 2025-12-14 16:49:28 · 166 阅读 · 0 评论 -
C++中虚函数表指针的设置时机
C++中虚函数表指针的设置时机原创 2025-09-21 11:16:28 · 316 阅读 · 0 评论 -
在cmake中指定clang编译cuda文件
在 cmake 中指定 clang 编译 cuda 文件原创 2025-06-25 21:19:30 · 390 阅读 · 0 评论 -
多线程复杂系统调试利器——assert()
调试复杂系统时,最大的难点在于定位问题,如果弄清楚了问题产生的机理,那么就能有针对性的进行解决原创 2024-09-28 18:16:20 · 382 阅读 · 0 评论 -
C++中重载定位new表达式
C++中重载定位 new 表达式 ...原创 2024-03-23 10:50:47 · 537 阅读 · 0 评论 -
C++中箭头运算符重载的细节
C++中箭头运算符重载的细节...原创 2024-03-12 21:04:39 · 449 阅读 · 0 评论 -
g++编译优化选项-fno-elide-constructors
1、考虑下面的代码,请问输出结果是什么?#include <stdio.h>class A {public: A(int val) { puts("A(int)"); d = val; } A(A&& a) { puts("A(A&&)"); d = a.d; } A(A& a) { puts("A(A&)"); d = a.d; } ~A() {}private: int d;};A cr原创 2020-06-27 20:03:37 · 2567 阅读 · 0 评论 -
vector的各种初始化方法
总结一下C++中vector初始化的方法,其实还挺多的。记不清的,可以看看。#include <iostream>#include <vector>using namespace std;vector<int> init_1() { vector<int> v; return v;}vector<int> init_2() { vector<int> v {1, 2, 3, 4, 5}; return v;}原创 2020-05-30 13:05:04 · 988 阅读 · 0 评论
分享