MCPcopy Create free account
hub / github.com/cpputest/cpputest / allocate

Method allocate

src/CppUTest/SimpleString.cpp:971–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971void SimpleStringCollection::allocate(size_t _size)
972{
973 delete[] collection_;
974
975 size_ = _size;
976 collection_ = new SimpleString[size_];
977}
978
979SimpleStringCollection::~SimpleStringCollection()
980{

Callers 2

splitMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64