Ajasra
3/14/2020 - 9:44 AM

maps and auto (range loop)

#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}, ... };