我读了STL和指针的用法困惑了我.
destroy(&*first);
首先是指针,然后"&*first"等于first,为什么不直接使用?destroy声明如下:
void destroy(T* pointer)
T是模板参数.
c++ pointers
c++ ×1
pointers ×1