Article ID: 158571 - Last Review: January 9, 2006 - Revision: 4.0 How to use the string::operator>= STL function in Visual C++This article was previously published under Q158571 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 following sample code illustrates how to use the
string::operator>= STL function in Visual C++. MORE INFORMATIONRequired HeaderPrototypeDescriptionThere are two versions of the string::operator>= function. Both versions are used to compare a null-terminated character array against a basic_string. They perform this operation by negating the result of (_L < _R). For more information on this comparison, please see the string::operator< function.Sample CodeProgram OutputS1 is ABC CP1 is ABC CP2 is DEF S1>=CP1 returned True S1>=CP2 returned False CP1>=S1 returned True CP2>=S1 returned True REFERENCES Visual C++ Books Online: Visual C++ Books; C/C++; Standard
C++ Library Reference APPLIES TO
| Article Translations
|

Back to the top
