MCPcopy Create free account
hub / github.com/apache/singa / ArgPos

Function ArgPos

include/singa/utils/string.h:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46inline int ArgPos(int argc, char** arglist, const char* arg) {
47 for (int i = 0; i < argc; i++) {
48 if (strcmp(arglist[i], arg) == 0) {
49 return i;
50 }
51 }
52 return -1;
53}
54
55template <typename T>
56inline std::string VecToStr(const std::vector<T>& in) {

Callers 5

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected