MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / operator[]

Method operator[]

tools/flatbuffers_backed_impl.cc:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 : list_(list) {}
45 int size() const override { return list_ ? list_->size() : 0; }
46 CelValue operator[](int index) const override {
47 auto value = list_->Get(index);
48 return CelValue::CreateStringView(
49 absl::string_view(value->c_str(), value->size()));
50 }
51
52 private:
53 const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>* list_;

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected