title: Is it possible without copy to pass std::vector<int> as param to fun that get std::vector<std::array<int, 3>>?
body: <p>I have such a method </p>
  
  <pre><code>void foo(std::vector&lt;std::array&lt;int, 3&gt;&gt; iVec){
  ....
  }
  </code></pre>
  
  <p>I don't want to change this method, but I need to pass as param this vector <code>std::vector&lt;int&gt;</code></p>
  
  <p>As far as I understand this two vectors are taking the same memory... So, theoretical I can use method <code>std::move</code> to move this vector as is. But this vectors has a different size.. so... I don't know...</p>
  
  <blockquote>
    <p>One guy told me that it could be possible if change the function that it will get two int pointers, and so it could be possible. </p>
  </blockquote>
  
  <p>But I don't understand what does it mean without a example... If someone could provide an example I really appreciate.</p>
  
  <p>But anyway question still is: if is it possible to pass my vector as a function param that has another type. If yes, so how? </p>
  
  <p>Fell free to ask</p>