📄 std__allocator.3
字号:
.TH std::allocator 3 "13 Sep 1999" "FREE_C++_STANDARD_LIBRARY" \" -*- nroff -*-.ad l.nh.SH NAMEstd::allocator \- .SH SYNOPSIS.br.PP.SS Public Members.in +1c.ti -1c.RI "typedef size_t \fBsize_type\fR".br.ti -1c.RI "typedef ptrdiff_t \fBdifference_type\fR".br.ti -1c.RI "typedef T* \fBpointer\fR".br.ti -1c.RI "typedef const T* \fBconst_pointer\fR".br.ti -1c.RI "typedef T& \fBreference\fR".br.ti -1c.RI "typedef const T& \fBconst_reference\fR".br.ti -1c.RI "typedef T \fBvalue_type\fR".br.ti -1c.RI "\fBallocator\fR () throw()".br.ti -1c.RI "\fBallocator\fR (const allocator &alloc) throw()".br.ti -1c.RI "template<class U> \fBallocator\fR<U> (const allocator<U> &alloc) throw()".br.ti -1c.RI "\fB~allocator\fR () throw()".br.ti -1c.RI "\fBpointer\fR \fBaddress\fR (\fBreference\fR x) const".br.ti -1c.RI "\fBconst_pointer\fR \fBaddress\fR (\fBconst_reference\fR x) const".br.ti -1c.RI "\fBpointer\fR \fBallocate\fR (\fBsize_type\fR n, const void * hint = 0)".br.ti -1c.RI "void \fBdeallocate\fR (\fBpointer\fR p, \fBsize_type\fR n)".br.ti -1c.RI "\fBsize_type\fR \fBmax_size\fR () const throw()".br.ti -1c.RI "void \fBconstruct\fR (\fBpointer\fR p, const T& val)".br.ti -1c.RI "void \fBdestroy\fR (\fBpointer\fR p)".br.in -1c.SH MEMBER TYPEDEF DOCUMENTATION.PP .SS template<class T> typedef size_t std::allocator<T>::size_type.PP.SS template<class T> typedef ptrdiff_t std::allocator<T>::difference_type.PP.SS template<class T> typedef T* std::allocator<T>::pointer.PP.SS template<class T> typedef const T* std::allocator<T>::const_pointer.PP.SS template<class T> typedef T& std::allocator<T>::reference.PP.SS template<class T> typedef const T& std::allocator<T>::const_reference.PP.SS template<class T> typedef T std::allocator<T>::value_type.PP.SH MEMBER FUNCTION DOCUMENTATION.PP .SS template<class T> std::allocator<T>::allocator<T> () throw().PP.nf{.br }.fi.SS template<class T> std::allocator<T>::allocator<T> (const allocator<T> & alloc) throw().PP.nf{.br }.fi.SS template<class T> template<class U> std::allocator<T>::allocator<T> (const allocator<U>& alloc) throw().PP.nf{.br }.fi.SS template<class T> std::allocator<T>::~allocator<T> () throw().PP.nf{.br }.fi.SS template<class T> \fBpointer\fR std::allocator<T>::address (\fBreference\fR x) const.PP.nf{.br return &x;.br }.fi.SS template<class T> \fBconst_pointer\fR std::allocator<T>::address (\fBconst_reference\fR x) const.PP.nf{.br return &x;.br }.fi.SS template<class T> \fBpointer\fR std::allocator<T>::allocate (\fBsize_type\fR n, const void * hint = 0).PP.nf{.br return (pointer)new T[n];.br }.fi.SS template<class T> void std::allocator<T>::deallocate (\fBpointer\fR p, \fBsize_type\fR n).PP.nf{.br delete p;.br }.fi.SS template<class T> \fBsize_type\fR std::allocator<T>::max_size () const throw().PP.SS template<class T> void std::allocator<T>::construct (\fBpointer\fR p, const T & val).PP.nf{.br new ((void *)p) T(val);.br }.fi.SS template<class T> void std::allocator<T>::destroy (\fBpointer\fR p).PP.nf{.br ((T*)p)->~T();.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 + -