Add wxVector::assign().
Closes #14703. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -205,6 +205,14 @@ public:
|
||||
clear();
|
||||
}
|
||||
|
||||
void assign(size_type p_size, const value_type& v)
|
||||
{
|
||||
clear();
|
||||
reserve(p_size);
|
||||
for ( size_t n = 0; n < p_size; n++ )
|
||||
push_back(v);
|
||||
}
|
||||
|
||||
void swap(wxVector& v)
|
||||
{
|
||||
wxSwap(m_size, v.m_size);
|
||||
|
Reference in New Issue
Block a user