关于智能指针的书
你能给我介绍一些非常清楚地解释智能指针思想的书籍吗(初级、中级和高级)?
谢谢。
Could you let me know about books that explains the ideas of smart pointer very clearly (beginner, intermediate and advanced level)?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
更高级一点,Modern C++ Design 这本书有很多值得参考的内容内容。幸运的是,有关智能指针的章节可以在线获取。但请注意,这是关于功能和设计的,而不仅仅是关于使用的,因此应该被视为高级水平。
A little more advanced, the book Modern C++ Design has a lot of worthy content. Luckily enough for you the chapter about Smart Pointers is available online. Take note however, that this is about the functioning and design, not only about usage, so should be treated as advanced level.
这篇维基百科文章智能指针可能是一个不错的起点。
A good starting place might be this Wikipedia article, Smart Pointers.
斯科特·迈耶斯 (Scott Meyers) 上面有一些物品。您可能不需要整本书。
Scott Meyers 书籍:
高效 C++
更有效的 C++
有效的STL
Scott Meyers has an a few items on it. You might not need a whole book.
Scott Meyers books :
Effective C++
More Effective C++
Effective STL
这个说明了旧的智能指针(来自 stl)和来自 boost 的新内容——足够详细。
ps,如果您是 C++ 新手,您可能想跳过这本书,因为仅仅为了一篇文章而购买它是不值得的。
This one illustrates the old smart pointers (from the stl) and the new ones from boost -- in adequate detail.
p.s., if your new to C++ you might want to skip this book as it's not worth buying it for just one article.