MCPcopy Create free account
hub / github.com/baidu/babylon / __resize_default_init

Method __resize_default_init

test/test_string.cpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 typedef char* pointer;
118 typedef size_t size_type;
119 void __resize_default_init(size_t size) {
120 _size = size;
121 }
122 char& operator[](int) {
123 return *reinterpret_cast<char*>(_size);
124 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected