diff options
| author | 2025-04-06 12:37:05 +0200 | |
|---|---|---|
| committer | 2025-04-06 12:37:05 +0200 | |
| commit | 1aae1e5b7d8ee26c626c126fa64392a5ef949f42 (patch) | |
| tree | f638aaea20326387c7475c4ebda436b9aac5b5c7 /include/plist | |
| parent | 464382e6f835dd54eeea9e3ed7c1c8d2fb25dfd0 (diff) | |
| download | libplist-1aae1e5b7d8ee26c626c126fa64392a5ef949f42.tar.gz libplist-1aae1e5b7d8ee26c626c126fa64392a5ef949f42.tar.bz2 | |
C++: Add f/Front() and b/Back() to Array to access first/last element
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/Array.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/plist/Array.h b/include/plist/Array.h index 949fa4c..f4360c5 100644 --- a/include/plist/Array.h +++ b/include/plist/Array.h | |||
| @@ -43,6 +43,10 @@ public : | |||
| 43 | typedef std::vector<Node*>::const_iterator const_iterator; | 43 | typedef std::vector<Node*>::const_iterator const_iterator; |
| 44 | 44 | ||
| 45 | Node* operator[](unsigned int index); | 45 | Node* operator[](unsigned int index); |
| 46 | Node* Back(); | ||
| 47 | Node* back(); | ||
| 48 | Node* Front(); | ||
| 49 | Node* front(); | ||
| 46 | iterator Begin(); | 50 | iterator Begin(); |
| 47 | iterator begin(); | 51 | iterator begin(); |
| 48 | iterator End(); | 52 | iterator End(); |
