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

Method AddAlias

library/cpp/getopt/small/modchooser.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void TModChooser::AddAlias(const TString& alias, const TString& mode) {
129 if (!Modes.FindPtr(mode)) {
130 ythrow yexception() << "TMode '" << mode << "' not found in TModChooser.";
131 }
132
133 Modes[mode]->Aliases.push_back(alias);
134 Modes[alias] = Modes[mode];
135}
136
137void TModChooser::SetDescription(const TString& descr) {
138 Description = descr;

Callers

nothing calls this directly

Calls 2

FindPtrMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected