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

Function parse_cpp_comment

repository/example/qi/confix.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30//[qi_confix_cpp_comment
31 template <typename Iterator>
32 bool parse_cpp_comment(Iterator first, Iterator last, std::string& attr)
33 {
34 bool r = parse(first, last,
35 confix("//", eol)[*(char_ - eol)], // grammar
36 attr); // attribute
37
38 if (!r || first != last) // fail if we did not get a full match
39 return false;
40 return r;
41 }
42//]
43
44//[qi_confix_c_comment

Callers 1

mainFunction · 0.85

Calls 2

confixFunction · 0.85
parseFunction · 0.70

Tested by

no test coverage detected