30 #ifndef _BACKWARD_AUTO_PTR_H
31 #define _BACKWARD_AUTO_PTR_H 1
36 namespace std _GLIBCXX_VISIBILITY(default)
38 _GLIBCXX_BEGIN_NAMESPACE_VERSION
47 template<
typename _Tp1>
54 } _GLIBCXX_DEPRECATED;
86 template<
typename _Tp>
124 template<
typename _Tp1>
138 reset(__a.release());
152 template<
typename _Tp1>
156 reset(__a.release());
183 _GLIBCXX_DEBUG_ASSERT(_M_ptr != 0);
196 _GLIBCXX_DEBUG_ASSERT(_M_ptr != 0);
211 get()
const throw() {
return _M_ptr; }
261 : _M_ptr(__ref._M_ptr) { }
266 if (__ref._M_ptr != this->get())
269 _M_ptr = __ref._M_ptr;
274 template<
typename _Tp1>
275 operator auto_ptr_ref<_Tp1>()
throw()
276 {
return auto_ptr_ref<_Tp1>(this->
release()); }
278 template<
typename _Tp1>
279 operator auto_ptr<_Tp1>()
throw()
280 {
return auto_ptr<_Tp1>(this->
release()); }
281 } _GLIBCXX_DEPRECATED;
290 } _GLIBCXX_DEPRECATED;
292 _GLIBCXX_END_NAMESPACE_VERSION