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

Function setToString

bwapi/DocumentationGen/helpers.h:145–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144template <class T>
145inline std::string setToString(T set, const std::string& prefix = "")
146{
147 std::ostringstream ss;
148 ss << "{ ";
149 bool first = true;
150 for (auto &v : set)
151 {
152 if (!first)
153 ss << ", ";
154 first = false;
155
156 ss << prefix << v;
157 }
158 ss << " }";
159 return ss.str();
160}
161
162template <class T>
163inline std::string mapToString(T map, const std::string& prefix1 = "", const std::string& prefix2 = "")

Callers 1

genUnitTypeTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

genUnitTypeTestFunction · 0.68