fancy pointer

2021-05-24  本文已影响0人  fck_13

cppreference 的解释如下:

When the member type pointer is not a raw pointer type, it is commonly referred to as a "fancy pointer".

如果一个对象可以像指针一样使用,但是它并不是一个裸指针,我们将其称之为fancy pointer

最常见的fancy pointer 是 iterator。
Iterator可以像指针一样使用:Iterator都实现了*-> 操作符。
Iterator不是裸指针。

上一篇 下一篇

猜你喜欢

热点阅读