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

Method CurValOrOpt

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

Source from the content-addressed store, hash-verified

121 }
122
123 TStringBuf CurValOrOpt() const {
124 TStringBuf val(CurValStr());
125 if (!val.IsInited() && CurOpt()->HasOptionalValue())
126 val = CurOpt()->GetOptionalValue();
127 return val;
128 }
129
130 TStringBuf CurValOrDef(bool useDef = true) const {
131 TStringBuf val(CurValOrOpt());

Callers 1

InitMethod · 0.80

Calls 2

IsInitedMethod · 0.80
HasOptionalValueMethod · 0.80

Tested by

no test coverage detected