Monday, September 23, 2019

Print c++ map to logs

// TODO: (ravij): remove this code after testing is complete >>>
  long unsigned mySize = static_cast<long unsigned>(parameterMap.size());
  ZF_LOGD("number of items in teh config map %lu", mySize);
  for ( auto it = parameterMap.begin(); it != parameterMap.end(); ++it )
    std::cout << " " << it->first << ":" << it->second;

  std::cout << std::endl;