| 167 | } // namespace |
| 168 | |
| 169 | absl::StatusOr<bool> FlatBuffersMapImpl::Has(const CelValue& key) const { |
| 170 | auto lookup_result = (*this)[key]; |
| 171 | if (!lookup_result.has_value()) { |
| 172 | return false; |
| 173 | } |
| 174 | auto result = *lookup_result; |
| 175 | if (result.IsError()) { |
| 176 | return *(result.ErrorOrDie()); |
| 177 | } |
| 178 | return true; |
| 179 | } |
| 180 | |
| 181 | absl::optional<CelValue> FlatBuffersMapImpl::operator[]( |
| 182 | CelValue cel_key) const { |