mirror-chatterino2/src/util/sharedptrelementless.hpp

18 lines
324 B
C++
Raw Normal View History

2018-05-06 12:52:47 +02:00
#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