《The C++ Standard Library》第50页 关于传递auto_ptr的问题
2007-09-21 16:02
471 查看
第50页最后一段话:
我怎么没记得在第43页里说不能传递auto_ptr. 可是我在第43页没有找到”不要用任何方式来传递auto_ptr”类似的语句啊。 而且里面讲的是source和sink,说的就是该如何传递auto_ptr和转移auto_ptr的ownership啊。 倒是在第44页中找到了这样的话:
第44页这段话的意思就是说:除非为了传递ownership,否则不要将auto_ptr作为一个参数。
我怎么没记得在第43页里说不能传递auto_ptr. 可是我在第43页没有找到”不要用任何方式来传递auto_ptr”类似的语句啊。 而且里面讲的是source和sink,说的就是该如何传递auto_ptr和转移auto_ptr的ownership啊。 倒是在第44页中找到了这样的话:
第44页这段话的意思就是说:除非为了传递ownership,否则不要将auto_ptr作为一个参数。
相关文章推荐
- The C++ Standard Library之auto_ptr
- The C++ Standard Library : A Tutoral and Reference 读书笔记之auto_ptr
- 《The C++ Standard Library》第45页 用const修饰auto_ptr的注意事项
- c++ standard library 学习笔记-auto_ptr<T> 注意事项
- [unresolved]《The C++ Standard Library》第50页 该如何理解exception to the rule
- The C++ Standard Library: shared_ptr and unique_ptr
- 关于Xilinx MicroBlaze应用modelsim se仿真问题(EDK:3593 - Unable to locate the precompiled library microblaze_v8_50_c)
- c++ the difference between auto_ptr (or unique_ptr) and shared_ptr
- 关于“The type **** is not accessible due to restriction on required library”问题的解决
- The C++ Standard Library Extensions: A Tutorial and Reference
- error This file requires compiler and library support for the ISO C++ 2011 standard
- Windows API, CRT, and the Standard C++ Library
- [unresolved]《The C++ Standard Library》第37页 pair的几种初始化
- 关于tomcat启动时出现The APR based Apache Tomcat Native library 问题
- The C++ Standard Library 学习笔记(一)第7章
- The C++ Standard Library 学习笔记(一)1 - 4 章
- boost::function实践——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
- A Tour of the Standard Library(Chapter 3 of The C++ Programming Language)
- C++中关于二维数组作为函数参数传递的问题
- boost::bind实践2——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》