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

Method forEachLevel

src/thundersvm/util/log.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 void LevelHelper::forEachLevel(base::type::EnumType* startIndex, const std::function<bool(void)>& fn) {
88 base::type::EnumType lIndexMax = LevelHelper::kMaxValid;
89 do {
90 if (fn()) {
91 break;
92 }
93 *startIndex = static_cast<base::type::EnumType>(*startIndex << 1);
94 } while (*startIndex <= lIndexMax);
95 }
96
97// ConfigurationTypeHelper
98

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected