minibuffer_mode_hash.hpp 381 B

12345678910111213
  1. #pragma once
  2. #include "lumacs/minibuffer_mode.hpp" // For MinibufferMode enum
  3. // Custom hash for MinibufferMode to use it as a key in std::unordered_map
  4. namespace std {
  5. template <>
  6. struct hash<lumacs::MinibufferMode> {
  7. size_t operator()(const lumacs::MinibufferMode& mode) const {
  8. return static_cast<size_t>(mode);
  9. }
  10. };
  11. } // namespace std