title: Calling a function inside std::all_of
body: <p>I know that I can do that:</p>
  
  <pre><code> vector&lt;int&gt; insidetest;
  
   if(std::all_of(insidetest.begin(),insidetest.end(),[](int i){return i&gt;100;}))
      {
         std::cout &lt;&lt; "All greater" &lt;&lt; std::endl;
      }
  </code></pre>
  
  <p>but I want to call an other function (maybe more complex than just >1000). How can I call another function inside the std::all_of, For example:</p>
  
  <pre><code>   bool fun(const vector&lt;int&gt; *s)
     {
     return true;
     }
  </code></pre>