MCPcopy Create free account
hub / github.com/boostorg/spirit / parse_numbers

Function parse_numbers

example/qi/num_list4.cpp:36–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 //[tutorial_numlist4
35 template <typename Iterator>
36 bool parse_numbers(Iterator first, Iterator last, std::vector<double>& v)
37 {
38 using qi::double_;
39 using qi::phrase_parse;
40 using qi::_1;
41 using ascii::space;
42
43 bool r = phrase_parse(first, last,
44
45 // Begin grammar
46 (
47 double_ % ','
48 )
49 ,
50 // End grammar
51
52 space, v);
53
54 if (first != last) // fail if we did not get a full match
55 return false;
56 return r;
57 }
58 //]
59}
60

Callers 1

mainFunction · 0.70

Calls 1

phrase_parseFunction · 0.50

Tested by

no test coverage detected