⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 std__auto_ptr.3

📁 Free C++ Standard Library
💻 3
字号:
.TH std::auto_ptr 3 "13 Sep 1999" "FREE_C++_STANDARD_LIBRARY" \" -*- nroff -*-.ad l.nh.SH NAMEstd::auto_ptr \- .SH SYNOPSIS.br.PP.SS Public Members.in +1c.ti -1c.RI "typedef X \fBelement_type\fR".br.ti -1c.RI "explicit \fBauto_ptr\fR (X *p = 0)  throw()".br.ti -1c.RI "\fBauto_ptr\fR (const auto_ptr &y)  throw()".br.ti -1c.RI "template<class Y> \fBauto_ptr\fR<Y> (const auto_ptr<Y>&)  throw()".br.ti -1c.RI "auto_ptr& \fBoperator=\fR (const auto_ptr &y)  throw()".br.ti -1c.RI "template<class Y> auto_ptr& \fBoperator=\fR<Y> (const auto_ptr<Y>&)  throw()".br.ti -1c.RI "\fB~auto_ptr\fR ()".br.ti -1c.RI "X& \fBoperator *\fR () const  throw()".br.ti -1c.RI "X* \fBoperator->\fR () const  throw()".br.ti -1c.RI "X* \fBget\fR () const  throw()".br.ti -1c.RI "X* \fBrelease\fR () const  throw()".br.in -1c.SH MEMBER TYPEDEF DOCUMENTATION.PP .SS template<class X> typedef X std::auto_ptr<X>::element_type.PP.SH MEMBER FUNCTION DOCUMENTATION.PP .SS template<class X> explicit std::auto_ptr<X>::auto_ptr<X> (X * p = 0)  throw().PP.nf:owns(p!=0), ptr(p) .br                        {.br                        }.fi.SS template<class X> std::auto_ptr<X>::auto_ptr<X> (const auto_ptr<X> & y)  throw().PP.nf: owns(y.owns), ptr(y.release()).br                        {.br                        }.fi.SS template<class X>  template<class Y> std::auto_ptr<X>::auto_ptr<X> (const auto_ptr<Y>& y)  throw().PP.nf: owns(y.owns), ptr(y.release()).br                        {.br                        }.fi.SS template<class X> auto_ptr<X> & std::auto_ptr<X>::operator= (const auto_ptr<X> & y)  throw().PP.nf{.br                                if (this!=&y) {.br                                        if (owns).br                                                delete ptr;.br                                        owns = y.owns;.br                                        ptr = y.release();.br                                }.br                                return *this;.br                        }.fi.SS template<class X>  template<class Y> auto_ptr<X> & std::auto_ptr<X>::operator= (const auto_ptr<Y>& y)  throw().PP.nf{.br                                if (this!=&y) {.br                                        if (owns).br                                                delete ptr;.br                                        owns = y.owns;.br                                        ptr = y.release();.br                                }.br                                return *this;.br                        }.fi.SS template<class X> std::auto_ptr<X>::~auto_ptr<X> ().PP.nf{.br                                if (owns).br                                        delete ptr;.br                        }.fi.SS template<class X> X & std::auto_ptr<X>::operator * () const  throw().PP.nf{.br                                return *get();.br                        }.fi.SS template<class X> X * std::auto_ptr<X>::operator-> () const  throw().PP.nf{.br                                return get();.br                        }.fi.SS template<class X> X * std::auto_ptr<X>::get () const  throw().PP.nf{.br                                return ptr;.br                        }.fi.SS template<class X> X * std::auto_ptr<X>::release () const  throw().PP.nf{.br                                this->owns = false;.br                                return ptr;.br                        }.fi.SH AUTHOR.PP Generated automatically by Doxygen for FREE_C++_STANDARD_LIBRARY from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -