How to define operator== to compare one vector of user-defined types to another in Visual C++ (158614)
The information in this article applies to:
- The Standard C++ Library, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ .NET (2002)
This article was previously published under Q158614 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. SUMMARY The following sample code illustrates how to define
operator== to compare one vector of user-defined types to another.
REFERENCES Visual C++ Books Online: Visual C++ Books; C/C++; Standard
C++ Library Reference
Modification Type: | Major | Last Reviewed: | 1/10/2006 |
---|
Keywords: | kbhowto kbcode kbinfo kbSTL kbtemplate KB158614 kbAudDeveloper |
---|
|