MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getAndDelNegOption

Function getAndDelNegOption

samples/common/sampleOptions.cpp:258–267  ·  view source on GitHub ↗

Check if input option exists in input arguments. If it does: return false in value, erase the argument and return true. If it does not: return false.

Source from the content-addressed store, hash-verified

256//! If it does: return false in value, erase the argument and return true.
257//! If it does not: return false.
258bool getAndDelNegOption(Arguments& arguments, const std::string& option, bool& value)
259{
260 bool dummy;
261 if (getAndDelOption(arguments, option, dummy))
262 {
263 value = false;
264 return true;
265 }
266 return false;
267}
268
269//! Check if input option exists in input arguments.
270//! If it does: add all the matched arg values to values vector, erase the argument and return true.

Callers 1

parseMethod · 0.85

Calls 1

getAndDelOptionFunction · 0.85

Tested by

no test coverage detected