Home | History | Annotate | Download | only in stl

Lines Matching refs:_Tp

31 template <class _Tp>
35 _Tp* const _M_p;
37 auto_ptr_ref(__ptr_base& __r, _Tp* __p) : _M_r(__r), _M_p(__p) { }
39 _Tp* release() const { _M_r.__set(__STATIC_CAST(void*, 0)); return _M_p; }
43 typedef auto_ptr_ref<_Tp> _Self;
47 template<class _Tp>
50 typedef _Tp element_type;
51 typedef auto_ptr<_Tp> _Self;
53 _Tp* release() _STLP_NOTHROW {
54 _Tp* __px = this->get();
59 void reset(_Tp* __px = 0) _STLP_NOTHROW {
60 _Tp* __pt = this->get();
66 _Tp* get() const _STLP_NOTHROW
68 { return __STATIC_CAST(_Tp*, _M_p); }
70 { return __REINTERPRET_CAST(_Tp*, _M_p); }
74 _Tp* operator->() const _STLP_NOTHROW {
79 _Tp& operator*() const _STLP_NOTHROW {
84 explicit auto_ptr(_Tp* __px = 0) _STLP_NOTHROW { this->__set(__px); }
89 _Tp* __conversionCheck = __r.release();
93 template<class _Tp1> auto_ptr<_Tp>& operator=(auto_ptr<_Tp1>& __r) _STLP_NOTHROW {
94 _Tp* __conversionCheck = __r.release();
109 auto_ptr(auto_ptr_ref<_Tp> __r) _STLP_NOTHROW
112 _Self& operator=(auto_ptr_ref<_Tp> __r) _STLP_NOTHROW {
123 operator auto_ptr_ref<_Tp>() _STLP_NOTHROW
124 { return auto_ptr_ref<_Tp>(*this, this->get()); }