Chatterino
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SharedPtrElementLess.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 namespace chatterino {
6 
7 template <typename T>
9  bool operator()(const std::shared_ptr<T> &a,
10  const std::shared_ptr<T> &b) const
11  {
12  return a->operator<(*b);
13  }
14 };
15 
16 } // namespace chatterino
Definition: Application.cpp:48
Definition: SharedPtrElementLess.hpp:8
bool operator()(const std::shared_ptr< T > &a, const std::shared_ptr< T > &b) const
Definition: SharedPtrElementLess.hpp:9