Advance the iterator to the first character which is not a comment * * @param[in,out] fs Stream to drop comments from */
| 58 | * @param[in,out] fs Stream to drop comments from |
| 59 | */ |
| 60 | void discard_comments(std::ifstream &fs) |
| 61 | { |
| 62 | while (fs.peek() == '#') |
| 63 | { |
| 64 | fs.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /* Advance the string iterator to the next character which is neither a space or a comment |
| 69 | * |
no test coverage detected