X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0824e369691b4a23a484e1d258b6e4ea021b022a..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/vector.h?ds=inline diff --git a/interface/wx/vector.h b/interface/wx/vector.h index 21aaca5763..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. */