Currently I'm looking into this C++ source code. I'm not a C++ dev.
void SomeClass::SomeMethod() const
{
vector<Thing> things(count);
...
//Elements are added or replaced in things but no deallocation of things here
}
SomeMethod
is called a lot of times. Could anyone confirm that there is no leak and things
is allocated only once, reference would be appreciated.