Template Function mrpt::containers::getMapAsString

Function Documentation

template<class T1, class T2>
std::string mrpt::containers::getMapAsString(const std::map<T1, T2> &m, const std::string &sep = " => ")

Return contents of map in a string representation.

Parameters:
  • m[in] Template map

  • sep[in] String that seperates visually each key and its value. Defaults to “ => “

Returns:

std::string representation of map