#include <map> #define TMap std::map TMap<char, bool> LetterSeen; // auto - compiler will define type for us for ( auto Letter : Word ){ std:cout << Letter; } TMap<int, int> Name { {1,2}, {2,1}, ... };