title: Conversion of data type using auto in C++
body: <p>I have 2 vector container which contains 2 different kind of value with data type <strong>uint32_t</strong>. I want to print both of them together.
  Like this is what I have  </p>
  
  <pre><code>vector&lt;uint32_t&gt; data1;
  vector&lt;uint32_t&gt; data2;
  </code></pre>
  
  <p>Now I know a method for single data like below</p>
  
  <pre><code>for(auto const&amp; d1: data1)
     cout&lt;&lt; d1 &lt;&lt; endl;
  </code></pre>
  
  <p>But I want to print both data together like this,  </p>
  
  <pre><code>   cout&lt;&lt; d1 &lt;&lt; "\t" &lt;&lt; d2 &lt;&lt; endl;
  </code></pre>
  
  <p>How can I do this using auto? (where d2 is auto converted value from data2)</p>