美文网首页
fancy pointer

fancy pointer

作者: fck_13 | 来源:发表于2021-05-24 13:02 被阅读0次

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不是裸指针。

相关文章

网友评论

      本文标题:fancy pointer

      本文链接:https://www.haomeiwen.com/subject/ryrxsltx.html