Can I initialize an STL vector with 10 of the same integer in an initializer list? My attempts so far have failed me.
If you're using C++11 and on GCC, you could do this:
vector myVec () {[0 ... 99] = 1};
It's called ranged initialization and is a GCC-only extension.