functional.h - エンジンの C API リファレンス

functional.h
  1. #pragma once
  2. namespace stingray_plugin_foundation {
  3. struct less
  4. {
  5. template <class A, class B> bool operator()(const A& a, const B& b) const {return (a < b);}
  6. void swap(less &other) {}
  7. };
  8. struct equal_to
  9. {
  10. template <class A, class B> bool operator()(const A& a, const B& b) const {return (a == b);}
  11. void swap(less &other) {}
  12. };
  13. } // namespace stingray_plugin_foundation