title: C++ decrement vector cycle
body: <p>I have a separate stack in my program with this timer vector attached.  When called, the stack pops an element out and the timer keeps track of how long it is out via user input.  When the time reaches 0, the element is put back into the stack.  I wanted to work through multiple timers so I tried to put them all into a vector and have them all decrement by one time unit when a function is called.  Not totally clear on how vectors work so I do not know how to decrement all of a vector's values.  </p>
  
  <pre><code>int wait(vector&lt;int&gt; &amp;x){
      std::vector&lt;int&gt;::iterator itr;
  for(itr = x.begin(); itr &lt; x.end(); itr++)
    {     //psuedocode 
      //x[itr]--;
    }
  }
  </code></pre>
  
  <p>I just want to make sure I'm going in the right direction.</p>