Article ID: 156790 - Last Review: January 11, 2006 - Revision: 6.0 How to use the operator == and the operator < Standard Template Library (STL) functions for the deque container class in Visual C++This article was previously published under Q156790 Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. Microsoft Visual C++ 2005 supports both the
managed code model that is provided by the Microsoft .NET Framework and the unmanaged
native Microsoft Windows code model. On This PageSUMMARY The sample code below illustrates how to use the operator
== and the operator < STL functions for the deque container class in Visual
C++. MORE INFORMATIONRequired HeaderPrototypeDescriptionThe first template function overloads operator== to compare two objects of template class deque. The function returns:The second template function overloads operator< to compare two objects of template class deque. The function returns: Sample CodeThe contents of a : C A A A The contents of b : B B B B B B a is greater than b The contents of a : B B B B B B The contents of b : B B B B B B a is equal to b REFERENCESFor the same information about the operator == and the operator
<, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vcsampsampleoperatoreeandoperatorldequestlsample.asp
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vcsampsampleoperatoreeandoperatorldequestlsample.asp)
APPLIES TO
| Article Translations
|
Back to the top
