![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C++
文章平均质量分 84
C++ 11
青山渺渺
Android Framework、Android Media开发工程师,关注公众号《青山渺渺》阅读更多内容
展开
-
STL源码剖析-Allocator
_first_stage_alloc中给出的是静态函数接口,所以callback/handler也得是静态的形式,但是我想让不同的Allocator拥有不同的callback/handler,那就只有定义多个Allocator类了(Allocator1,Allocator2,Allocator3......)。指针本身也是一个变量,有自己地址,成员指针的地址等同于union的地址,给成员指针赋值等同于给union存下一块buffer的地址。顾名思义,Allocator是用来做内存分配的。原创 2023-04-10 23:32:12 · 713 阅读 · 0 评论 -
C++中的代码重用与其他
C++代码重用与其他原创 2023-01-03 21:00:00 · 746 阅读 · 0 评论 -
C++类继承
C++类继承原创 2023-01-02 10:00:00 · 935 阅读 · 0 评论 -
C++类和动态内存分配
C++类和动态内存分配原创 2023-01-01 22:44:48 · 822 阅读 · 0 评论 -
C++对象和类
C++类原创 2023-01-01 22:22:32 · 398 阅读 · 0 评论 -
C++内存模型和名称空间
C++内存模型和名称空间原创 2023-01-01 18:27:26 · 523 阅读 · 0 评论 -
C++函数
C++函数原创 2022-12-25 23:03:45 · 559 阅读 · 0 评论 -
C++复合类型
C++复合类型原创 2022-12-24 16:39:02 · 637 阅读 · 0 评论 -
C++数据处理
C++11 数据处理原创 2022-12-21 18:37:01 · 718 阅读 · 0 评论 -
const* int 与int* const 与 const int * 与 const int * const
int a = 10;int b = 20;const int * p = &a;*p = 20; //错误//更改p指向的地址p = &b;1、const int * p和int const * p指向地址的值是一个不能由p来改变的,但是可以指向其他的地址。2、 int *c...原创 2023-09-11 23:49:54 · 691 阅读 · 1 评论