loop through several vectors
<p>I had trouble searching for potential duplicates because I'm not sure what the correct terminology is.</p>

<p>If I have many vectors which are already created, how can I loop through them? To make things simple, suppose I have three vectors of strings named <code>"vec_one"</code>, <code>"vec_two"</code>, <code>"vec_three"</code>.</p>

<p>I want to do something like:</p>

<pre><code>for i in ("vec_one", "vec_two", "vec_three") {
    for (vector&lt;string&gt;::const_iterator iter = i.begin(); iter != i.end(); ++iter) {
        //do something with the elements ***and I need to access "i"***, that is, the vector name.
    }
}
</code></pre>

<p>This would be the same as writing three different for loops, but would be more readable and in fact I have more than three in my non-simple application.</p>

<p>Note that because I need to access the vector name (see the comment), I can't just merge them all together and then run one loop.</p>
