Article ID: 158575 - Last Review: December 30, 2005 - Revision: 5.1 How to use the set::empty and set::clear STL functions in Visual C++This article was previously published under Q158575 Note Microsoft Visual C++ .NET (2002) and Microsoft Visual C++ 2005 support 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::empty and set::clear STL functions in Visual C++. MORE INFORMATIONRequired headerPrototypeDescriptionThe empty function returns true when there are no elements in the controlled sequence. By calling erase(begin,end), the clear function removes all elements in the controlled sequence. For more information about the erase function, please see set::erase.Sample codeProgram outputREFERENCES For the same topic about set::empty and set::clear, visit
the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/x6sxc0b1.aspx
(http://msdn.microsoft.com/en-us/library/x6sxc0b1.aspx)
APPLIES TO
| Article Translations
|
Back to the top
