MCPcopy Create free account
hub / github.com/ElementsProject/elements / parseAsymptote

Function parseAsymptote

src/bench/bench_bitcoin.cpp:35–45  ·  view source on GitHub ↗

parses a comma separated list like "10,20,30,50"

Source from the content-addressed store, hash-verified

33
34// parses a comma separated list like "10,20,30,50"
35static std::vector<double> parseAsymptote(const std::string& str) {
36 std::stringstream ss(str);
37 std::vector<double> numbers;
38 double d;
39 char c;
40 while (ss >> d) {
41 numbers.push_back(d);
42 ss >> c;
43 }
44 return numbers;
45}
46
47int main(int argc, char** argv)
48{

Callers 1

mainFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected