Article ID: 158580 - Last Review: July 15, 2005 - Revision: 4.1 How to use the set::swap, set::begin and set::end Standard Template Library (STL) functions in Visual C++This article was previously published under Q158580 Note Microsoft Visual C++ NET (2002) supported both the managed code
model that is provided by the .NET Framework and the unmanaged native Windows
code model. The information in this article applies to unmanaged Visual C++
code only. On This PageSUMMARY The following sample code illustrates how to use the
set::swap, set::begin and set::end STL functions in Visual C++. MORE INFORMATIONRequired headerPrototypeDescriptionThe swap function swaps the two controlled sequences. The begin function returns a bidirectional iterator that points at the first element of the sequence. The end function returns a bidirectional iterator that points just beyond the end of the sequence.Sample codeProgram outputREFERENCES For the same topic about set::swap, begin, and end, visit
the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/b2b2xwd6.aspx
(http://msdn.microsoft.com/en-us/library/b2b2xwd6.aspx)
APPLIES TO
| Article Translations
|

Back to the top
