small note about untyped lists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a62da4c56f
commit
064998bf8b
@ -290,8 +290,12 @@ Returns the number of elements in the list.
|
||||
|
||||
Allows the sorting of arbitrary lists by giving
|
||||
a function to compare two list elements. We use the system {\bf qsort} function
|
||||
for the actual sorting process. The sort function receives pointers to wxObject pointers (wxObject **),
|
||||
so be careful to dereference appropriately.
|
||||
for the actual sorting process.
|
||||
|
||||
If you use untyped wxList the sort function receives pointers to wxObject
|
||||
pointers (wxObject **), so be careful to dereference appropriately - but,
|
||||
of course, a better solution is to use list of appropriate type defined with
|
||||
{\tt WX\_DECLARE\_LIST}.
|
||||
|
||||
Example:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user