p2p/lib/dt_p2p/stingray_sdk/plugin_foundation/functional.h

21 lines
485 B
C++

#pragma once
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
namespace stingray_plugin_foundation {
struct less
{
template <class A, class B> bool operator()(const A& a, const B& b) const {return (a < b);}
void swap(less &other) {}
};
struct equal_to
{
template <class A, class B> bool operator()(const A& a, const B& b) const {return (a == b);}
void swap(less &other) {}
};
} // namespace stingray_plugin_foundation
#pragma GCC diagnostic pop