Sierra Toolkit
Version of the Day
|
#include <functional_eastl.h>
Inherits eastl::binary_function< Argument1, Argument2, Result >.
Public Member Functions | |
bool | operator() (T a, T b) const |
Compares two 0-terminated string types. The T types are expected to be iterators or act like iterators.
Example usage: hash_set<const char*, hash<const char*>, str_equal_to<const char*> > stringHashSet;
Note: You couldn't use str_equal_to like this: bool result = equal("hi", "hi" + 2, "ho", str_equal_to<const char*>()); This is because equal tests an array of something, with each element by the comparison function. But str_equal_to tests an array of something itself.
Definition at line 150 of file functional_eastl.h.