]> git.saurik.com Git - wxWidgets.git/commitdiff
added array(size_t count) ctor initializing the array with count items with default...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2007 00:53:47 +0000 (00:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2007 00:53:47 +0000 (00:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynarray.h

index 535642547589d3dd1d41ec65aa5688ce625e73c4..9ed4c10642896dfb36a7b916f5e35c0047e7e4d2 100644 (file)
@@ -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); }                                          \