#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <typeinfo>
using namespace std;
struct print_type
{
template<typename T>
void operator()(T) const
{
cout << "result: " << typeid(T).name() << endl;
}
};
using Type = map<string, vector<int>>;
int main(int agrc, char* argv[])
{
print_type(Type);
return 0;
}
终端打印结果: