git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57031
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxVector() : m_size(0), m_capacity(0), m_values(NULL) {}
wxVector() : m_size(0), m_capacity(0), m_values(NULL) {}
+ wxVector(size_type size)
+ : m_size(0), m_capacity(0), m_values(NULL)
+ {
+ reserve(size);
+ for ( size_t n = 0; n < size; n++ )
+ push_back(value_type());
+ }
+
+ wxVector(size_type size, const value_type& v)
+ : m_size(0), m_capacity(0), m_values(NULL)
+ {
+ reserve(n);
+ for ( size_t n = 0; n < size; n++ )
+ push_back(v);
+ }
+
wxVector(const wxVector& c) : m_size(0), m_capacity(0), m_values(NULL)
{
Copy(c);
wxVector(const wxVector& c) : m_size(0), m_capacity(0), m_values(NULL)
{
Copy(c);
+ /**
+ Constructor initializing the vector with the given number of
+ default-constructed objects.
+ */
+ wxVector(size_type size);
+
+ /**
+ Constructor initializing the vector with the given number of
+ copies of the given object.
+ */
+ wxVector(size_type size, const value_type& value);
+