X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d9d249be4bae53dd16f0a8ac044914c1410c90c..6e65f80be5dfcc75bd520fc320d3389e4559bccf:/docs/latex/wx/array.tex?ds=inline diff --git a/docs/latex/wx/array.tex b/docs/latex/wx/array.tex index 91792f981d..9fa90ec11e 100644 --- a/docs/latex/wx/array.tex +++ b/docs/latex/wx/array.tex @@ -128,8 +128,8 @@ Things are much simpler for wxArray and wxSortedArray however: it is enough just to write \begin{verbatim} -WX_DEFINE_ARRAY(int, ArrayOfDirectories); -WX_DEFINE_SORTED_ARRAY(int, ArrayOfFiles); +WX_DEFINE_ARRAY_INT(int, ArrayOfInts); +WX_DEFINE_SORTED_ARRAY_INT(int, ArrayOfSortedInts); \end{verbatim} i.e. there is only one {\tt DEFINE} macro and no need for separate @@ -493,7 +493,8 @@ append a lot of items. Preallocates memory for a given number of array elements. It is worth calling when the number of items which are going to be added to the array is known in advance because it will save unneeded memory reallocation. If the array already -has enough memory for the given number of items, nothing happens. +has enough memory for the given number of items, nothing happens. In any case, +the existing contents of the array is not modified. \membersection{wxArray::Clear}\label{wxarrayclear} @@ -534,9 +535,9 @@ Return the number of items in the array. \membersection{wxArray::Index}\label{wxarrayindex} -\func{int}{Index}{\param{T\& }{item}, \param{bool }{searchFromEnd = false}} +\constfunc{int}{Index}{\param{T\& }{item}, \param{bool }{searchFromEnd = false}} -\func{int}{Index}{\param{T\& }{item}} +\constfunc{int}{Index}{\param{T\& }{item}} The first version of the function is for wxArray and wxObjArray, the second is for wxSortedArray only. @@ -679,3 +680,4 @@ return a negative, zero or positive value according to whether the first element passed to it is less than, equal to or greater than the second one. wxSortedArray doesn't have this function because it is always sorted. +