MCPcopy Create free account
hub / github.com/coin-or/CppAD / string2unsigned

Function string2unsigned

example/utility/to_string.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39 template <class Integer>
40 Integer string2unsigned(const std::string& s)
41 { Integer result = 0;
42 size_t index = 0;
43 while( index < s.size() )
44 result = Integer(10 * result + Integer(s[index++]) - '0');
45 return result;
46 }
47 template <class Integer>
48 bool signed_integer(void)
49 { bool ok = true;

Callers

nothing calls this directly

Calls 2

IntegerFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected