I know in C++11 they added the feature to initialize a variable to zero as such
double number = {}; // number = 0 int data{}; // data = 0
Initializing a vector having struct, class or Union can be done this way
std::vector someStructVect(length); memset(someStructVect.data(), 0, sizeof(SomeStruct)*length);