Article ID: 158201 - Last Review: January 5, 2006 - Revision: 4.0 How to use the string::operator> Standard Template Library (STL) function in Visual C++This article was previously published under Q158201 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
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 to a basic_string. They perform this operation by returning the result of (RString<LCharArray or RCharArray<LString). For more information on this comparison, please see the string::operator< function.Note that this operator does not work with NULL pointer for the character array. You will need to make sure that the character array is not NULL before you pass it to the operator. Sample CodeREFERENCES Visual C++ Books On Line: Visual C++ Books:C/C++:Standard
C++ Library Reference. APPLIES TO
| Article Translations
|
Back to the top
