5 ms·
Interesting, never saw such way of std::vector/std::map allocations: g->children = new std::vector<struct gridChild *>; g->indexof = new std::map<uiCon
by c-smile 8y ago
Interesting, never saw such way of std::vector/std::map allocations:
g->children = new std::vector<struct gridChild *>;
g->indexof = new std::map<uiControl *, size_t>;
At least needless level of indirection ...
https://github.com/andlabs/libui/blob/master/windows/grid.cpp#L654 https://github.com/andlabs/libui/blob/master/windows/grid.cp...