index_ variable is a map that holds the arguments that are added using addArgument.
The exists function is currently written as follows bool exists(const String& name) const { return index_.count(delimit(name)) > 0; }
so a code like the one below will always enter the if's body, even if the clean argument has not been sent to the program,
index_
variable is a map that holds the arguments that are added usingaddArgument
.The
exists
function is currently written as followsbool exists(const String& name) const { return index_.count(delimit(name)) > 0; }
so a code like the one below will always enter the if's body, even if the
clean
argument has not been sent to the program,This is inconsistent with the definition given for the
exists
functionThank you for your efforts,
Sincerely,
Ahmad