mirror-chatterino2/src/util/SharedPtrElementLess.hpp
2018-08-06 21:17:03 +02:00

17 lines
305 B
C++

#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