Add C++11-style cbegin, cend, etc. to wxString's iterator interface

These c-prefixed functions always return a const_iterator.
The full list of functions added: cbegin(), cend(), crbegin(), crend().

Closes https://github.com/wxWidgets/wxWidgets/pull/314
This commit is contained in:
Lauri Nurmi
2016-08-24 19:02:12 +03:00
committed by Vadim Zeitlin
parent e68bd5a319
commit 394ce5f631
3 changed files with 11 additions and 0 deletions

View File

@@ -1574,13 +1574,17 @@ public:
const_iterator begin() const;
iterator begin();
const_iterator cbegin() const;
const_iterator end() const;
iterator end();
const_iterator cend() const;
const_reverse_iterator rbegin() const;
reverse_iterator rbegin();
const_reverse_iterator crbegin() const;
const_reverse_iterator rend() const;
reverse_iterator rend();
const_reverse_iterator crend() const;
//@}