Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我喜欢 C++ 并关注它的发展。在浏览时我遇到了这个链接:
http://www.cplusplus-soup.com/2012/01/rich-pointers-frequently-asked.html
有人可以简单地解释富指针的概念吗?
至少在我阅读时,它们是“标记指针”。换句话说,指针不仅携带它所指向的项目的地址,而且还有一些相关的元数据来告诉指针打算指向什么类型的东西。