Yes, the 10 is just an argument to the constructor; there's no reason it would need to be known at compile time.
Perhaps try reading "thinking in c++" (available free online). It's essential to learn the stl, instead of learning some bastardized mixture of c and c++ - if you're going to learn c++, learn c++.