template<typename _Tp1>
operator auto_ptr_ref<_Tp1>() throw()
{ return auto_ptr_ref<_Tp1>(this->release()); }
template<typename _Tp1>
operator auto_ptr<_Tp1>() throw()
{ return auto_ptr<_Tp1>(this->release()); }
Run Code Online (Sandbox Code Playgroud)
我在stl类auto_ptr中找到了这两个方法的定义.
有人可以解释一下,其他函数如何构造函数没有返回类型?
| 归档时间: |
|
| 查看次数: |
140 次 |
| 最近记录: |