git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47741
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return begin() + idx;
}
iterator erase(iterator it)
return begin() + idx;
}
iterator erase(iterator it)
size_type idx = it - begin();
RemoveAt(idx);
return begin() + idx;
}
size_type idx = it - begin();
RemoveAt(idx);
return begin() + idx;
}
iterator insert(iterator it, const value_type& v = value_type())
{
wxCHECK2(Alloc(size() + 1), return 0);
size_type idx = it - begin();
iterator insert(iterator it, const value_type& v = value_type())
{
wxCHECK2(Alloc(size() + 1), return 0);
size_type idx = it - begin();
- InsertAt(new value_type(o), idx);
+ InsertAt(new value_type(v), idx);
m_objects + idx + 1,
m_objects + idx,
( m_size - idx ) * sizeof(value_type*) );
m_objects + idx + 1,
m_objects + idx,
( m_size - idx ) * sizeof(value_type*) );
( m_size - idx - 1 ) * sizeof(value_type*) );
m_size--;
}
( m_size - idx - 1 ) * sizeof(value_type*) );
m_size--;
}
void RemoveAt(size_type idx, size_type count)
{
if (count == 0)
void RemoveAt(size_type idx, size_type count)
{
if (count == 0)