MCPcopy Create free account
hub / github.com/daniele77/cli / unsigned_from_string

Function unsigned_from_string

include/cli/detail/fromstring.h:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112template <typename T>
113inline T unsigned_from_string(std::string s)
114{
115 if (s.empty())
116 throw bad_conversion();
117 if (s[0] == '+')
118 {
119 s = s.substr(1);
120 }
121 return unsigned_digits_from_string<T>(s);
122}
123
124template <typename T>
125inline T signed_from_string(std::string s)

Callers

nothing calls this directly

Calls 1

bad_conversionClass · 0.85

Tested by

no test coverage detected