X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ff86a86a7f3f5778e3358758c087b8c3507bdc7..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/vector.h?ds=sidebyside diff --git a/interface/wx/vector.h b/interface/wx/vector.h index de47ae0372..f8b32e26d2 100644 --- a/interface/wx/vector.h +++ b/interface/wx/vector.h @@ -2,7 +2,6 @@ // Name: vector.h // Purpose: interface of wxVector // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -51,6 +50,19 @@ public: */ wxVector(size_type size, const value_type& value); + /** + Constructor initializing the vector with the elements in the given + range. + + The @a InputIterator template parameter must be an input iterator type. + This constructor adds all elements from @a first until, not not + including, @a last to the vector. + + @since 2.9.5 + */ + template + wxVector(InputIterator first, InputIterator last); + /** Copy constructor. */ @@ -70,6 +82,18 @@ public: */ void assign(size_type n, const value_type& v); + /** + Assigns the elements in the given range to the vector. + + The @a InputIterator template parameter must be an input iterator type. + This method clears the vector and then adds all elements from @a first + until, not not including, @a last to it. + + @since 2.9.5 + */ + template + void assign(InputIterator first, InputIterator last); + /** Returns item at position @a idx. */ @@ -112,7 +136,7 @@ public: /** - Returns vector's current capacity, i.e. how much memory is allocated. + Returns vector's current capacity, i.e.\ how much memory is allocated. @see reserve() */