Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class Compare>
- class ReverseCompare
- {
- ReverseCompare(Compare comp)
- :comp(comp)
- {}
- template<class Value>
- bool operator(const Value& a, const Value& b) const
- {
- return !comp(a, b);
- }
- Compare comp;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement