#pragma once
#include "stdafx.h"
#include<windows.h>
#include <vector>
#include <map>
#include <algorithm>
using namespace std; bool badvalue(int x)
{
if (x == || x==)
return true; return false;
}
map<int, vector<int>> g_map;
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> vec;
vec.push_back();
vec.push_back();
vec.push_back();
vec.push_back();
//std::remove(vec.begin(), vec.end(), 2); //删除指定元素为2
vec.erase(remove_if(vec.begin(), vec.end(), badvalue), vec.end());//删除符合判断的元素
g_map.insert(make_pair(, vec));
g_map.insert(make_pair(, vec));
map<int, vector<int>>::iterator it = g_map.begin();
//for (; it != g_map.end(); /*it++*/)
//{
// g_map.erase(it++);
//}
it = g_map.begin();
for (; it != g_map.end(); it++)
{
printf("map:%d\n", it->first);
vector<int>::iterator iter = it->second.begin();
int i = ;
while (iter != it->second.end())
{
printf("vector:%d\n", *iter);
iter++;
}
}
system("pause");
return ;
}