Functor that can be used as an explicitly given replacement for std::equal_to
with template types (containers) found in namespace std
.
While the specialization of std::equal_to
for type String, which is used by the default values of template arguments of the corresponding types in namespace std
, performs a case-sensitive comparison, this version ignores the letter case of the characters of the given strings.
Note that this specialization can also be used in combination with derived string-types, like AString.
This functor is provided with the inclusion of header-file ALib.Strings.StdFunctors.H.
alib::strings::compatibility::std
, the true location is namespace alib
.TChar | The character type of the strings to compare. Defaults to character. |
Definition at line 182 of file ALib.Strings.StdFunctors.H.
#include <ALib.Strings.StdFunctors.H>
Public Method Index: | |
bool | operator() (const strings::TString< TChar > &lhs, const strings::TString< TChar > &rhs) const |
|
inline |
Invokes String::Equals on lhs, passing rhs and returns the result.
lhs | The first string object. |
rhs | The second string object. |
Definition at line 190 of file ALib.Strings.StdFunctors.H.