Last() function added (the same as Item(Count() - 1))
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,6 +172,8 @@ public: \
|
|||||||
{ return (T&)(wxBaseArray::Item(uiIndex)); } \
|
{ return (T&)(wxBaseArray::Item(uiIndex)); } \
|
||||||
T& Item(uint uiIndex) const \
|
T& Item(uint uiIndex) const \
|
||||||
{ return (T&)(wxBaseArray::Item(uiIndex)); } \
|
{ return (T&)(wxBaseArray::Item(uiIndex)); } \
|
||||||
|
T& Last() const \
|
||||||
|
{ return (T&)(wxBaseArray::Item(Count() - 1)); } \
|
||||||
\
|
\
|
||||||
int Index(T Item, bool bFromEnd = FALSE) const \
|
int Index(T Item, bool bFromEnd = FALSE) const \
|
||||||
{ return wxBaseArray::Index((long)Item, bFromEnd); } \
|
{ return wxBaseArray::Index((long)Item, bFromEnd); } \
|
||||||
@@ -209,6 +211,8 @@ public: \
|
|||||||
{ return *(T*)wxBaseArray::Item(uiIndex); } \
|
{ return *(T*)wxBaseArray::Item(uiIndex); } \
|
||||||
T& Item(uint uiIndex) const \
|
T& Item(uint uiIndex) const \
|
||||||
{ return *(T*)wxBaseArray::Item(uiIndex); } \
|
{ return *(T*)wxBaseArray::Item(uiIndex); } \
|
||||||
|
T& Last() const \
|
||||||
|
{ return *(T*)(wxBaseArray::Item(Count() - 1)); } \
|
||||||
\
|
\
|
||||||
int Index(const T& Item, bool bFromEnd = FALSE) const; \
|
int Index(const T& Item, bool bFromEnd = FALSE) const; \
|
||||||
\
|
\
|
||||||
|
Reference in New Issue
Block a user