This functor is designed to compare 0-terminated arrays. More...
#include <STLHelper.hpp>
Inheritance diagram for less_null_terminated_arrays:
Collaboration diagram for less_null_terminated_arrays:
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.
|
|
|
|
|
|
|
|
|
Compare the values of two objects.
|
The documentation for this struct was generated from the following file:
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|