MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / resize

Function resize

include/jsoncons/basic_json.hpp:3491–3504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3489 }
3490
3491 void resize(std::size_t n)
3492 {
3493 switch (storage_kind())
3494 {
3495 case json_storage_kind::array:
3496 cast<array_storage>().value().resize(n);
3497 break;
3498 case json_storage_kind::json_ref:
3499 cast<json_ref_storage>().value().resize(n);
3500 break;
3501 default:
3502 break;
3503 }
3504 }
3505
3506 template <typename T>
3507 void resize(std::size_t n, T val)

Callers

nothing calls this directly

Calls 3

storage_kindFunction · 0.85
resizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected