| 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 |