mirror-chatterino2/src/util/SharedPtrElementLess.hpp

16 lines
284 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 {
bool operator()(const std::shared_ptr<T> &a, const std::shared_ptr<T> &b) const
{
return a->operator<(*b);
}
};
} // namespace chatterino