X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e068310a5a5fc97c6bd5149f140fbbea134d296d..427861bde09badef1a2950ad799e69fac6b4a48a:/interface/wx/vector.h diff --git a/interface/wx/vector.h b/interface/wx/vector.h index 093c7d1ca8..412330d380 100644 --- a/interface/wx/vector.h +++ b/interface/wx/vector.h @@ -20,7 +20,7 @@ @nolibrary @category{containers} - @see @ref overview_container, wxList, wxArray + @see @ref overview_container, wxList, wxArray, wxVectorSort */ template class wxVector @@ -237,3 +237,19 @@ public: size_type size() const; }; + +/** + Sort the contents of a @c wxVector. In a STL build this function will + be defined as a thin wrapper around std::sort. To be sortable the + contained type must support the less-than operator. + + @code + wxVector v; + ... // items are added to the vector v... + wxVectorSort(v); + @endcode + + @see wxVector +*/ +template +void wxVectorSort(wxVector& v);