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

Method MutuallyExclusiveOpt

library/cpp/getopt/small/last_getopt_opts.cpp:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 void TOpts::MutuallyExclusiveOpt(TOpt& opt1, TOpt& opt2) {
249 opt1.Handler1(MutuallyExclusiveHandler(&opt1, &opt2))
250 .IfPresentDisableCompletionFor(opt2);
251 opt2.Handler1(MutuallyExclusiveHandler(&opt2, &opt1))
252 .IfPresentDisableCompletionFor(opt1);
253 }
254
255 size_t TOpts::IndexOf(const TOpt* opt) const {
256 TOptsVector::const_iterator it = std::find(Opts_.begin(), Opts_.end(), opt);

Callers

nothing calls this directly

Calls 1

MutuallyExclusiveHandlerFunction · 0.85

Tested by

no test coverage detected