title: why is there an error: size is not a member of std?
body: <pre><code>#include &lt;iostream&gt; // for std::cout
  #include &lt;iterator&gt; // for std::size
  
  int main()
  {
      int array[] = { 1, 1, 2, 3, 5, 8, 13, 21 };
      std::cout &lt;&lt; "The array has: " &lt;&lt; std::size(array) &lt;&lt; " elements\n";
  
      return 0;
  }
  </code></pre>
  
  <p>When I run this code, i got something like size is not a member of std. Any comments are greatly appreciated. </p>