MCPcopy Create free account
hub / github.com/couchbase/fleece / operator[]

Method operator[]

API/fleece/Mutable.hh:194–195  ·  view source on GitHub ↗

This enables e.g. `dict["key"_sl] = 17`

Source from the content-addressed store, hash-verified

192
193 // This enables e.g. `dict["key"_sl] = 17`
194 inline keyref<MutableDict,slice> operator[] (slice key)
195 {return keyref<MutableDict,slice>(*this, key);}
196 inline keyref<MutableDict,slice> operator[] (const char *key)
197 {return keyref<MutableDict,slice>(*this, slice(key));}
198 inline keyref<MutableDict,Key&> operator[] (Key &key)

Callers

nothing calls this directly

Calls 1

sliceClass · 0.85

Tested by

no test coverage detected