title: How do I Pass an array object (Class Template c++) to a function as a parameter?
body: <p>If I declare an array (using c++ Class Template) like this, </p>
  
  <pre><code>#include &lt;array&gt; //standard c++ library
   int main()
  {
   array&lt;int,3&gt; myarray{10,20,30}; 
  }
  </code></pre>
  
  <p>How will I be able to send this array object to a function as a parameter.</p>
  
  <p>If I pass like this it works :</p>
  
  <pre><code>void f_print(array&lt;int, 3&gt; object){}
  int main()
  {
   array&lt;int, 3&gt; myarray{10,20,30};
   f_print(myarray);
  }
  </code></pre>
  
  <p>but the problem here is I am hard coding the size in the function. The whole point to work like this to use array as an object type so I can use array.size().
  So How can I pass this array type object (c++ Class Template) without hardcoding the size.</p>
  
  <p>Edit_1: Why can't I send the array object as only an object where I use all the properties of the object inside the function parameter.</p>