mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-21 21:39:10 +00:00
@@ -143,6 +143,8 @@ public:
|
||||
/* {
|
||||
return cmp(a.first, b);
|
||||
}*/
|
||||
|
||||
bool operator()(const pair< K, V >& a, const pair< K, V >& b) const;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@@ -165,6 +167,12 @@ inline bool pair_sorter_finder< pair< K, V >, Cmp >::operator()(const pair< K, V
|
||||
return cmp(a.first, b);
|
||||
}
|
||||
|
||||
template < typename K, typename V, typename Cmp >
|
||||
inline bool pair_sorter_finder< pair< K, V >, Cmp >::operator()(const pair< K, V >& a,
|
||||
const pair< K, V >& b) const {
|
||||
return cmp(a.first, b.first);
|
||||
}
|
||||
|
||||
template < typename T >
|
||||
typename T::const_iterator
|
||||
find_by_key(const T& container,
|
||||
|
||||
Reference in New Issue
Block a user