MCPcopy Create free account
hub / github.com/bwapi/bwapi / mapToString

Function mapToString

bwapi/DocumentationGen/helpers.h:163–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162template <class T>
163inline std::string mapToString(T map, const std::string& prefix1 = "", const std::string& prefix2 = "")
164{
165 std::ostringstream ss;
166 ss << "{ ";
167 bool first = true;
168 for (auto &v : map)
169 {
170 if (!first)
171 ss << ", ";
172 first = false;
173
174 ss << "{" << prefix1 << v.first << ", " << prefix2 << v.second << "}";
175 }
176 ss << " }";
177 return ss.str();
178}

Callers 1

genUnitTypeTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

genUnitTypeTestFunction · 0.68