@@ -417,7 +417,7 @@ void TMapping::Remove(const TNodePairRef& toRemove) {
free(toRemove.Pair_);
}
-bool TMapping::Has(TString key) {
+bool TMapping::Has(TString key) const {
return fy_node_mapping_lookup_by_string(Node_, key.data(), key.size()) != nullptr;
@@ -487,7 +487,7 @@ public:
void Remove(const TNodePairRef& toRemove);
- bool Has(TString key);
+ bool Has(TString key) const;
TMappingIterator Remove(const TMappingIterator& toRemove);