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

Function BMFromString

tools/enum_parser/parse_enum/benchmark/main.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53 template <class TEnum, class TContext>
54 void BMFromString(TContext& iface) {
55 const auto strings = SelectStrings<TEnum>(5u);
56 for (const auto iter : xrange(iface.Iterations())) {
57 Y_UNUSED(iter);
58 for (const auto s : strings) {
59 Y_DO_NOT_OPTIMIZE_AWAY(FromString<TEnum>(s));
60 }
61 }
62 }
63
64 template <class TEnum, class TContext>
65 void BMTryFromString(TContext& iface) {

Callers

nothing calls this directly

Calls 3

xrangeFunction · 0.85
Y_UNUSEDFunction · 0.85
IterationsMethod · 0.45

Tested by

no test coverage detected