mirror-chatterino2/src/util/SharedPtrElementLess.hpp

17 lines
305 B
C++
Raw Normal View History

2018-05-06 12:52:47 +02:00
#pragma once
#include <memory>
namespace chatterino {
template <typename T>
struct SharedPtrElementLess {
2018-08-06 21:17:03 +02:00
bool operator()(const std::shared_ptr<T> &a,
const std::shared_ptr<T> &b) const
2018-05-06 12:52:47 +02:00
{
return a->operator<(*b);
}
};
} // namespace chatterino