MCPcopy Create free account
hub / github.com/catboost/catboost / PrintEnumItemsImpl

Function PrintEnumItemsImpl

util/draft/enum.h:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template <class K, class V>
44TString PrintEnumItemsImpl(const std::pair<K, V>* entries, size_t arraySize) {
45 TString result;
46 TStringOutput out(result);
47 for (size_t i = 0; i < arraySize; i++) {
48 out << (i ? ", " : "") << "'" << entries[i].first << "'";
49 }
50 return result;
51}
52
53// special version for const char*
54template <class V>

Callers 1

EnumFromStringImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected