The wxList<T> class provides linked list functionality.
This class 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
The wxList<T> class provides linked list functionality.
This class 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
- Please refer to the STL std::list documentation for further information on how
- to use the class. Below we documented both the supported STL and the legacy API
+ Please refer to the STL @c std::list documentation (see http://www.cppreference.com/wiki/stl/list/start)
+ for further information on how to use the class.
+ Below we documented both the supported STL and the legacy API
- Note that if you compile wxWidgets in STL mode (wxUSE_STL defined as 1)
- then wxList<T> will actually derive from std::list and just add a legacy
+ Note that if you compile wxWidgets in STL mode (@c wxUSE_STL defined as 1)
+ then wxList<T> will actually derive from @c std::list and just add a legacy
The use of the latter is especially discouraged as it is not only unsafe but
is also much less efficient than wxArrayString class.
The use of the latter is especially discouraged as it is not only unsafe but
is also much less efficient than wxArrayString class.
if @a iter is a valid iterator. Returns @true if successful.
Deletes the actual object if DeleteContents( @true ) was called previously.
if @a iter is a valid iterator. Returns @true if successful.
Deletes the actual object if DeleteContents( @true ) was called previously.
- If the the list is enlarges items with the value @e v are appended to the list.
+
+ If the list is longer than @a n, then items are removed until the list
+ becomes long @a n.
+ If the list is shorter than @a n items with the value @a v are appended
+ to the list until the list becomes long @a n.
- @class wxNode
-
- wxNodeBase is the node structure used in linked lists (see wxList) and derived
- classes. You should never use wxNodeBase class directly, however, because it
+ wxNode<T> is the node structure used in linked lists (see wxList) and derived
+ classes. You should never use wxNode<T> class directly, however, because it
written as wxNodeT even though it isn't really a template class -- but it
helps to think of it as if it were.
written as wxNodeT even though it isn't really a template class -- but it
helps to think of it as if it were.