clover/util: Allow using key_equals with pair-like objects other than std::pair.
This commit is contained in:
parent
e987fd5dc6
commit
5583459655
|
@ -332,9 +332,9 @@ namespace clover {
|
||||||
key_equals_t(T &&x) : x(x) {
|
key_equals_t(T &&x) : x(x) {
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename S>
|
template<typename P>
|
||||||
bool
|
bool
|
||||||
operator()(const std::pair<T, S> &p) const {
|
operator()(const P &p) const {
|
||||||
return p.first == x;
|
return p.first == x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue