title: I Want To use count_if based on my own parameters
body: <p>Example i have a vector with integer value and i want to count no of elements in that vector that specifies my own runtime inputs.
  exam vector has elemets 10 , 20 ,30,40
  and at runtime i am taking input k; and want to count that satisfies >k</p>
  
  <pre><code>int ar[4]={10,44,36,14};
  vector&lt;int&gt;shiva(ar,ar+4);
  
  int k;
  cin&gt;&gt;k;
  cout&lt;&lt;*count_if(shiva.begin(),shiva.end(),myfun(k));
  </code></pre>
  
  <p>How to make a structure function ?
  i want to print total no of elements that satisfies >k;</p>