MCPcopy Create free account
hub / github.com/boostorg/json / get_chars1

Function get_chars1

test/doc_background.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155namespace my_library {
156
157std::pmr::vector<char> get_chars1()
158{
159 // This leaks memory because `v` does not own the memory resource
160 std::pmr::vector<char> v( new my_resource );
161
162 return v;
163}
164
165} // my_library
166// end::doc_background_7[]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected