Also correct wxDList<T>

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-10-14 09:43:53 +00:00
parent e1b7677ee6
commit 7fa920cd39

View File

@ -789,13 +789,16 @@ public:
for(size_type i = 0; i < n; ++i)
Append(v);
}
iterator insert(const iterator& it, const_reference v = value_type())
iterator insert(const iterator& it, const_reference v)
{
Insert(it.m_node,v);
if (it == end())
Append( v );
else
Insert(it.m_node,v);
iterator itprev(it);
return itprev--;
}
void insert(const iterator& it, size_type n, const_reference v = value_type())
void insert(const iterator& it, size_type n, const_reference v)
{
for(size_type i = 0; i < n; ++i)
Insert(it.m_node, v);