I need a global variable in my C++ program. It is going to be a vector of bitsets. However, the size of the bitsets is determined at runtime by a function.
So basically, I would like to register the variable (in the top part of my code) and later define it properly by the function that determines the bitarrays' size.
Is there a way to do this in C++?