\section{\class{wxList<T>}}\label{wxlist}
-The wxList<T> class provides linked list functionality. It has been written
+The wxList<T> class provides linked list functionality. It has been rewritten
to be type safe and to provide the full API of the STL std::list container and
should be used like it. The exception is that wxList<T> actually stores
pointers and therefore its iterators return pointers and not references
to the actual objets in the list (see example below) and {\it value\_type}
-is defined as {\it T*}.
+is defined as {\it T*}. wxList<T> destroys an object after removing it only
+if \helpref{DeleteContents}{wxlistdeletecontents} has been called.
-
-Unfortunately, the
-new wxList<T> class requires that you declare and define each wxList<T>
-class in your program. This is done with {\it WX\_DECLARE\_LIST} and
-{\it WX\_DEFINE\_LIST} macros (see example). We hope that we'll be able
+wxList<T> is not a real template and it requires that you declare and define
+each wxList<T> class in your program. This is done with {\it WX\_DECLARE\_LIST}
+and {\it WX\_DEFINE\_LIST} macros (see example). We hope that we'll be able
to provide a proper template class providing both the STL std::list
and the old wxList API in the future.
\wxheading{See also}
-\helpref{wxArray}{wxarray}
+\helpref{wxArray<T>}{wxarray},
+\helpref{wxVector<T>}{wxvector}
\latexignore{\rtfignore{\wxheading{Members}}}
Appends the pointer to \rtfsp{\it object} to the list.
-\membersection{wxList<T>::Clear}\label{wxlistclear}
+\membersection{wxList<T>::Clear}\label{wxlistclear1}
\func{void}{Clear}{\void}
Returns the index of {\it obj} within the list or {\tt wxNOT\_FOUND} if
{\it obj} is not found in the list.
-\membersection{wxList<T>::Insert}\label{wxlistinsert}
+\membersection{wxList<T>::Insert}\label{wxlistinsert1}
\func{wxList<T>::compatibility\_iterator}{Insert}{\param{T *}{object}}
Inserts an item (or several) at the given position.
-\membersection{wxList<T>::max\_size}\label{wxlistmax\_size}
+\membersection{wxList<T>::max\_size}\label{wxlistmaxsize}
\constfunc{size\_type}{max\_size}{\void}
Returns the largest possible size of the list.
-\membersection{wxList<T>::pop\_back}\label{wxlistpop\_back}
+\membersection{wxList<T>::pop\_back}\label{wxlistpopback}
\func{void}{pop\_back}{\void}
Removes the last item from the list.
-\membersection{wxList<T>::pop\_front}\label{wxlistpop\_front}
+\membersection{wxList<T>::pop\_front}\label{wxlistpopfront}
\func{void}{pop\_front}{\void}
Removes the first item from the list.
-\membersection{wxList<T>::push\_back}\label{wxlistpush\_back}
+\membersection{wxList<T>::push\_back}\label{wxlistpushback}
\func{void}{push\_back}{\param{const\_reference }{v = value\_type()}}
Adds an item to end of the list.
-\membersection{wxList<T>::push\_front}\label{wxlistpush\_front}
+\membersection{wxList<T>::push\_front}\label{wxlistpushfront}
\func{void}{push\_front}{\param{const\_reference }{v = value\_type()}}