mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
17 lines
324 B
C++
17 lines
324 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace chatterino {
|
|
namespace util {
|
|
|
|
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 util
|
|
} // namespace chatterino
|