2022-12-19 14:37:51 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
struct custom_cmp {
|
|
|
|
bool operator()(int a, int b) const {
|
|
|
|
return a < b;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct OIDTestingTwoString {
|
|
|
|
std::string first;
|
|
|
|
std::string second;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct customTwoStringEq {
|
2023-03-22 16:16:17 +00:00
|
|
|
bool operator()(const OIDTestingTwoString& a, const OIDTestingTwoString& b) {
|
2022-12-19 14:37:51 +00:00
|
|
|
return (a.first == a.first && a.second == b.second);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct customHash {
|
2023-03-22 16:16:17 +00:00
|
|
|
std::size_t operator()(const OIDTestingTwoString& two) const {
|
2022-12-19 14:37:51 +00:00
|
|
|
return ((std::hash<std::string>()(two.first) ^
|
|
|
|
(std::hash<std::string>()(two.second))));
|
|
|
|
}
|
|
|
|
};
|