why Vector doesn't provide the remove() member function while list provides?
<p>If I want to delete  all the elements with a value from vector,I call remove <strong>algorithm</strong> and then call vector's erase member function to physically delete it.
     But in the case of list , simple call remove member function and it will delete all elements with that value. 
    I am not sure why vector does't provide the remove MF  while list does it.    </p>

<p>For Exp: I want to delete value '4' from vector v. </p>

<pre><code>vector&lt;int&gt; v;
vector&lt;int&gt; ::iterator Itr;
for (int i=0; i&lt; 6; i++)
   v.push_back(i*2);
v.push_back(4);
v.push_back(8);
v.push_back(4);
v.erase(remove(v.begin(),v.end(),4), v.end()); 
</code></pre>

<p>and for list:</p>

<pre><code>list.remove(4); // will delete all the element which has value 4
</code></pre>
