MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / remove_needs

Method remove_needs

simcore/framework/src/cli/cli.hpp:5931–5938  ·  view source on GitHub ↗

Removes an option from the needs list of this subcommand

Source from the content-addressed store, hash-verified

5929
5930 /// Removes an option from the needs list of this subcommand
5931 bool remove_needs(Option *opt) {
5932 auto iterator = std::find(std::begin(need_options_), std::end(need_options_), opt);
5933 if (iterator == std::end(need_options_)) {
5934 return false;
5935 }
5936 need_options_.erase(iterator);
5937 return true;
5938 }
5939
5940 /// Removes a subcommand from the needs list of this subcommand
5941 bool remove_needs(App *app) {

Callers 2

remove_optionMethod · 0.45
remove_subcommandMethod · 0.45

Calls 4

findFunction · 0.85
beginFunction · 0.85
endFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected