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

Method IndexOf

library/cpp/getopt/small/last_getopt_opts.cpp:255–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 size_t TOpts::IndexOf(const TOpt* opt) const {
256 TOptsVector::const_iterator it = std::find(Opts_.begin(), Opts_.end(), opt);
257 if (it == Opts_.end())
258 ythrow TException() << "unknown option";
259 return it - Opts_.begin();
260 }
261
262 TStringBuf TOpts::GetFreeArgTitle(size_t pos) const {
263 if (FreeArgSpecs_.contains(pos)) {

Callers 1

getopt_long_implFunction · 0.45

Calls 4

TExceptionClass · 0.85
findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected