re-added wxVector<T>::erase(size_t) for backward compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -126,6 +126,10 @@ public:
|
|||||||
return begin() + idx;
|
return begin() + idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
|
wxDEPRECATED( size_type erase(size_type n) );
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
iterator insert(iterator it, const value_type& v = value_type())
|
iterator insert(iterator it, const value_type& v = value_type())
|
||||||
{
|
{
|
||||||
wxCHECK2(Alloc(size() + 1), return 0);
|
wxCHECK2(Alloc(size() + 1), return 0);
|
||||||
@@ -223,6 +227,15 @@ private:
|
|||||||
value_type **m_objects;
|
value_type **m_objects;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
|
template<typename T>
|
||||||
|
typename wxVector<T>::size_type wxVector<T>::erase(size_type n)
|
||||||
|
{
|
||||||
|
RemoveAt(n);
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
#endif // wxUSE_STL/!wxUSE_STL
|
#endif // wxUSE_STL/!wxUSE_STL
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_8
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
|
Reference in New Issue
Block a user