X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2712e31795ee7ab4de62189b440d702f3f849c0d..a6acecec4051afb021a16752ddf87bf9fff8f279:/docs/latex/wx/list.tex diff --git a/docs/latex/wx/list.tex b/docs/latex/wx/list.tex index 2d49800caf..b5064e8072 100644 --- a/docs/latex/wx/list.tex +++ b/docs/latex/wx/list.tex @@ -11,18 +11,17 @@ \section{\class{wxList}}\label{wxlist} -The wxList class provides linked list functionality. It has been written +The wxList 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 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 destroys an object after removing it only +if \helpref{DeleteContents}{wxlistdeletecontents} has been called. - -Unfortunately, the -new wxList class requires that you declare and define each wxList -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 is not a real template and it requires that you declare and define +each wxList 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.