X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/560689094552afb5326d50a2c803d14d26f12ea6..e4097f77c440b1f31a80fe273cc732c14d606096:/interface/wx/vector.h diff --git a/interface/wx/vector.h b/interface/wx/vector.h index 02e1a2728b..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. */ @@ -61,6 +73,27 @@ public: */ ~wxVector(); + /** + Resizes the vector to @a n and assigns @a v to all elements. + + @see resize() + + @since 2.9.5 + */ + 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. */ @@ -103,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() */