小编Kan*_*ing的帖子

取消引用指针,然后取消引用的地址

我读了STL和指针的用法困惑了我.

destroy(&*first);
Run Code Online (Sandbox Code Playgroud)

首先是指针,然后"&*first"等于first,为什么不直接使用?destroy声明如下:

void destroy(T* pointer)
Run Code Online (Sandbox Code Playgroud)

T是模板参数.

c++ pointers

6
推荐指数
1
解决办法
667
查看次数

标签 统计

c++ ×1

pointers ×1