MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / parse

Method parse

benchmark/cmdparser.hpp:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 };
139
140 static int parse(const std::vector<std::string>& elements, const int&) {
141 if (elements.size() != 1)
142 throw std::bad_cast();
143
144 return std::stoi(elements[0]);
145 }
146
147 static bool parse(const std::vector<std::string>& elements, const bool& defval) {
148 if (elements.size() != 0)

Callers 2

run_testsFunction · 0.45
runMethod · 0.45

Calls 2

TClass · 0.50
sizeMethod · 0.45

Tested by 1

run_testsFunction · 0.36