aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/lower_case/hash_ops.h
blob: 8bc3171390ddd00918a071070fa206b484592d77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <util/generic/strbuf.h>

// can be used for caseless hashes like: THashMap<TStringBuf, T, TCIOps, TCIOps> 

struct TCIOps {
    size_t operator()(const char* s) const noexcept;
    size_t operator()(const TStringBuf& s) const noexcept;

    bool operator()(const char* f, const char* s) const noexcept;
    bool operator()(const TStringBuf& f, const TStringBuf& s) const noexcept;
};