]> git.saurik.com Git - wxWidgets.git/commitdiff
added operator[] for STL builds
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 May 2006 00:56:59 +0000 (00:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 May 2006 00:56:59 +0000 (00:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/list.h

index 187f003c4285484dd97f5550dce8ed8b8ca14690..33ae0bf486b36ac6130b413a54a0cdccba03ab21 100644 (file)
@@ -262,6 +262,11 @@ private:
             std::advance( i, idx );                                           \
             return compatibility_iterator( this, i );                         \
         }                                                                     \
             std::advance( i, idx );                                           \
             return compatibility_iterator( this, i );                         \
         }                                                                     \
+        compatibility_iterator operator[](size_t idx) const                   \
+        {                                                                     \
+            return Item(idx);                                                 \
+        }                                                                     \
+                                                                              \
         compatibility_iterator GetFirst() const                               \
         {                                                                     \
             return compatibility_iterator( this,                              \
         compatibility_iterator GetFirst() const                               \
         {                                                                     \
             return compatibility_iterator( this,                              \