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()); }
我在 stl 类 auto_ptr 中找到了这两种方法的定义。
有人可以解释一下,构造函数以外的函数如何没有返回类型?