MCPcopy Create free account
hub / github.com/boostorg/json / operator[]

Method operator[]

example/proxy.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 proxy
26 operator[](string_view key)
27 {
28 object* obj;
29 if(jv_.is_null())
30 obj = &jv_.emplace_object();
31 else
32 obj = &jv_.as_object();
33 return proxy((*obj)[key]);
34 }
35
36 proxy
37 operator[](std::size_t index)

Callers

nothing calls this directly

Calls 4

proxyClass · 0.85
is_nullMethod · 0.80
resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected