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

Method CurValOrDef

library/cpp/getopt/small/last_getopt_parser.h:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 TStringBuf CurValOrDef(bool useDef = true) const {
131 TStringBuf val(CurValOrOpt());
132 if (!val.IsInited() && useDef && CurOpt()->HasDefaultValue())
133 val = CurOpt()->GetDefaultValue();
134 return val;
135 }
136
137 // true if this option was actually specified by the user
138 bool IsExplicit() const {

Callers 4

HandleOptMethod · 0.80
HandleOptMethod · 0.80
HandleOptMethod · 0.80
HandleOptMethod · 0.80

Calls 3

IsInitedMethod · 0.80
HasDefaultValueMethod · 0.80
GetDefaultValueMethod · 0.45

Tested by

no test coverage detected