MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / forEachConfigType

Method forEachConfigType

src/thundersvm/util/log.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void ConfigurationTypeHelper::forEachConfigType(base::type::EnumType* startIndex, const std::function<bool(void)>& fn) {
141 base::type::EnumType cIndexMax = ConfigurationTypeHelper::kMaxValid;
142 do {
143 if (fn()) {
144 break;
145 }
146 *startIndex = static_cast<base::type::EnumType>(*startIndex << 1);
147 } while (*startIndex <= cIndexMax);
148 }
149
150// Configuration
151

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected