    #include <iostream>
    #include <algorithm>
    #include <vector>
    
int main(){
    std::vector<int> v{4,4,4,4,4,1,2,3,4,4,3,5,7,4,3,5,76,3,4,6,4,3,1,3,4};
    //v gets populated...
    int toberemoved=4;

    auto itr = std::remove_if(v.begin(),v.end(), [&](int a){return a == toberemoved;});

    v.erase(itr,v.end());
    for(auto& x : v){
    	std::cout << x << ',';
    }
}