|
Sierra Toolkit
Version of the Day
|
Class hash_nocase implements a hash, case insensitive compare equal NamePair functor. More...
#include <UserPlugin.hpp>
Inherits binary_function< NamePair, NamePair, bool >.
Public Member Functions | |
| bool | operator() (const NamePair &lhs, const NamePair &rhs) const |
Class hash_nocase implements a hash, case insensitive compare equal NamePair functor.
@brief Class <b>hash_nocase</b> implements a hash, case insensitive NamePair
hash functor.
‍/
struct hash_nocase { size_t operator()(const NamePair &n) const { return sierra::hash_string_nocase(n.second.c_str()); } };
/** / struct equal_nocase : public std::binary_function<NamePair, NamePair, bool> { bool operator()(const NamePair &lhs, const NamePair &rhs) const { sierra::equal_nocase<NamePair::second_type> second_equal_nocase;
return *lhs.first == *rhs.first && second_equal_nocase(lhs.second, rhs.second); } };
/**
Class less_nocase implements a case insensitive NamePair compare less functor.
Definition at line 96 of file UserPlugin.hpp.