hash_ops.h 406 B

12345678910111213
  1. #pragma once
  2. #include <util/generic/strbuf.h>
  3. // can be used for caseless hashes like: THashMap<TStringBuf, T, TCIOps, TCIOps>
  4. struct TCIOps {
  5. size_t operator()(const char* s) const noexcept;
  6. size_t operator()(const TStringBuf& s) const noexcept;
  7. bool operator()(const char* f, const char* s) const noexcept;
  8. bool operator()(const TStringBuf& f, const TStringBuf& s) const noexcept;
  9. };