diff options
author | m-milkin <m-milkin@yandex-team.com> | 2023-03-24 15:34:13 +0300 |
---|---|---|
committer | m-milkin <m-milkin@yandex-team.com> | 2023-03-24 15:34:13 +0300 |
commit | 387c914d75e04773da90dcf623982a47909c19d2 (patch) | |
tree | 2aee2c5f92c70eac1e34206307d910c8c360f585 /library/cpp/resource/registry.cpp | |
parent | f8d946ba7430c3864f0a97d42fa295d19ed40a3e (diff) | |
download | ydb-387c914d75e04773da90dcf623982a47909c19d2.tar.gz |
Filter searcher props by black list. Add NResource::Has()
Diffstat (limited to 'library/cpp/resource/registry.cpp')
-rw-r--r-- | library/cpp/resource/registry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp index e0da3402a5..6f5ff85c63 100644 --- a/library/cpp/resource/registry.cpp +++ b/library/cpp/resource/registry.cpp @@ -49,6 +49,10 @@ namespace { Y_VERIFY(size() == Count(), "size mismatch"); } + bool Has(const TStringBuf key) const override { + return contains(key); + } + bool FindExact(const TStringBuf key, TString* out) const override { if (TDescriptor* const* res = FindPtr(key)) { // temporary |