#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

struct foo {
	string	anulat;
	int		value;
};

int main() {
	vector<foo> v { 
		{"Test1", 10},
		{"Yes", 20},
		{"Test2", 5},
		{"Yes", 10},
		{"Yes", 1},
		{"Test3", 0}
	};
	
	cout << "--- Before:" << endl;
	for(const auto& item : v) cout << item.anulat << " : " << item.value << endl;
	
	v.erase(remove_if(v.begin(),v.end(),[](auto& item) {return item.anulat=="Yes";}), v.end());
	
	cout << "--- After:" << endl;
	for(const auto& item : v) cout << item.anulat << " : " << item.value << endl;
	
	return 0;
}