MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Add

Method Add

eval/public/containers/container_backed_map_impl.cc:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96absl::Status CelMapBuilder::Add(CelValue key, CelValue value) {
97 auto [unused, inserted] = values_map_.emplace(key, value);
98
99 if (!inserted) {
100 return absl::InvalidArgumentError("duplicate map keys");
101 }
102 key_list_.Add(key);
103 return absl::OkStatus();
104}
105
106// CelValue hasher functor.
107size_t CelMapBuilder::Hasher::operator()(const CelValue& key) const {

Callers 4

TESTFunction · 0.45
CreateContainerBackedMapFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36