X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..0159d534634fb2a64687efc25812676c99ac9295:/interface/wx/vector.h?ds=sidebyside diff --git a/interface/wx/vector.h b/interface/wx/vector.h index 34f32230cf..ddaff2edca 100644 --- a/interface/wx/vector.h +++ b/interface/wx/vector.h @@ -27,11 +27,38 @@ class wxVector { public: typedef size_t size_type; + typedef size_t difference_type; typedef T value_type; + typedef value_type* pointer; typedef value_type* iterator; typedef const value_type* const_iterator; typedef value_type& reference; + /** + Reverse iterator interface + */ + class reverse_iterator + { + public: + reverse_iterator(); + explicit reverse_iterator(iterator it); + reverse_iterator(const reverse_iterator& it); + reference operator*() const; + pointer operator->() const; + iterator base() const; + reverse_iterator& operator++(); + reverse_iterator operator++(int); + reverse_iterator& operator--(); + reverse_iterator operator--(int); + reverse_iterator operator+(difference_type n) const; + reverse_iterator& operator+=(difference_type n); + reverse_iterator operator-(difference_type n) const; + reverse_iterator& operator-=(difference_type n); + reference operator[](difference_type n) const; + bool operator ==(const reverse_iterator& it) const; + bool operator !=(const reverse_iterator& it) const; + }; + /** Constructor. */ @@ -77,6 +104,17 @@ public: */ iterator begin(); + /** + Return reverse iterator to end of the vector. + */ + reverse_iterator rbegin(); + + /** + Return reverse iterator to beginning of the vector. + */ + reverse_iterator rend(); + + /** Returns vector's current capacity, i.e. how much memory is allocated.