2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct SharedPtrElementLess {
|
|
|
|
bool operator()(const std::shared_ptr<T> &a,
|
|
|
|
const std::shared_ptr<T> &b) const
|
|
|
|
{
|
|
|
|
return a->operator<(*b);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|