Sierra Toolkit Version of the Day
eastl::str_equal_to< T > Struct Template Reference

#include <functional_eastl.h>

Inherits eastl::binary_function< Argument1, Argument2, Result >.

List of all members.

Public Member Functions

bool operator() (T a, T b) const

Detailed Description

template<typename T>
struct eastl::str_equal_to< T >


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.

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines