X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/arrstr.h diff --git a/interface/wx/arrstr.h b/interface/wx/arrstr.h index 3708c54635..d22f7a0e2c 100644 --- a/interface/wx/arrstr.h +++ b/interface/wx/arrstr.h @@ -2,7 +2,6 @@ // Name: arrstr.h // Purpose: interface of wxArrayString // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -160,14 +159,20 @@ public: @see operator[] for the operator version. */ - wxString& Item(size_t nIndex) const; + //@{ + wxString& Item(size_t nIndex); + const wxString& Item(size_t nIndex) const; + //@} /** Returns the last element of the array. Attempt to access the last element of an empty array will result in assert failure in debug build, however no checks are done in release mode. */ - wxString& Last() const; + //@{ + wxString& Last(); + const wxString& Last() const; + //@} /** Removes the first item matching this value. An assert failure is provoked by @@ -260,24 +265,21 @@ public: wxSortedArrayString is an efficient container for storing wxString objects which always keeps the string in alphabetical order. - wxSortedArrayString uses binary search in its wxArrayString::Index() function + wxSortedArrayString uses binary search in its wxSortedArrayString::Index() method (instead of linear search for wxArrayString::Index()) which makes it much more efficient if you add strings to the array rarely (because, of course, you have to pay for Index() efficiency by having Add() be slower) but search for them often. Several methods should not be used with sorted array (basically, all those which break the order of items) which is mentioned in their description. - @todo what about STL? who does it integrates? - @library{wxbase} @category{containers} @see wxArray, wxString, @ref overview_string */ -class wxSortedArrayString : public wxArrayString +class wxSortedArrayString : public wxArray { public: - /** Conversion constructor.