From: Vadim Zeitlin Date: Sat, 10 Nov 2007 00:53:47 +0000 (+0000) Subject: added array(size_t count) ctor initializing the array with count items with default... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5041b46fedadcafbdd945acad45c2cae500fd11d added array(size_t count) ctor initializing the array with count items with default value for compatibility with STL version git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 5356425475..9ed4c10642 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -438,6 +438,7 @@ public: \ bool operator !=(const itor& it) const { return m_ptr != it.m_ptr; }\ }; \ \ + name(size_type n) { assign(n, value_type()); } \ name(size_type n, const_reference v) { assign(n, v); } \ name(const_iterator first, const_iterator last) \ { assign(first, last); } \