Xalan-C++ API Reference
1.12.0
|
This functor is designed to compare 0-terminated arrays. More...
#include <xalanc/Include/STLHelper.hpp>
Public Member Functions | |
bool | operator() (const T *theLHS, const T *theRHS) const |
Compare the values of two objects. More... | |
This functor is designed to compare 0-terminated arrays.
It substitutes for the default less<type*> so that pointers to arrays can be compared, rather than copies of arrays. For example, you might want to use C-style strings as keys in a map, rather than string objects. The default algorithm less<const char*> would just compare the pointers, and not the vector of characters to which it points. Using this algorithm instead of the default will allow the map to work as expected.
Definition at line 194 of file STLHelper.hpp.
|
inline |
Compare the values of two objects.
theLHS | first object to compare |
theRHS | second object to compare |
Definition at line 205 of file STLHelper.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:32 for Xalan-C++ API Reference by 1.8.17