title: How does this "size of array" template function work?
body: <p>Can someone explain how this code works? I know that the purpose of this code is to get the length of an array, but I don't know how this code works:</p>
  
  <pre><code>template&lt;typename T, int size&gt;
  int GetArrLength(T(&amp;)[size]){return size;}
  </code></pre>