cppreference 的解釋如下:
When the member type
pointer
is not a raw pointer type, it is commonly referred to as a "fancy pointer".
如果一個(gè)對(duì)象可以像指針一樣使用句各,但是它并不是一個(gè)裸指針莲组,我們將其稱之為fancy pointer拥诡。
最常見(jiàn)的fancy pointer 是 iterator棠枉。
Iterator可以像指針一樣使用:Iterator都實(shí)現(xiàn)了*
酌壕, ->
操作符兵钮。
Iterator不是裸指針耐版。