X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d13fbc6dc2c70d7423c68b422a708ac1c64d201..51ad652fa2a9f46f2c3fc9b23610fdcbe8d57ffe:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index 187f003c42..8c19a070ec 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -262,6 +262,11 @@ private: std::advance( i, idx ); \ return compatibility_iterator( this, i ); \ } \ + elT operator[](size_t idx) const \ + { \ + return Item(idx).GetData(); \ + } \ + \ compatibility_iterator GetFirst() const \ { \ return compatibility_iterator( this, \