With C++11 you can initialize a vector as if it were a static array, eg.:
std::vector<int> numbers = { 0, 1, 2, 3 };
I have a class that I want to be able to declare and initialize with a static array like that. I've been reading through the <vector> header file but I'm not even sure where they're doing it, much less how. Anyone know how to do this?