update documentation

This commit is contained in:
ado 2021-01-01 18:43:26 +01:00
parent aec49e7e4f
commit 0ec0c7dd6a

View File

@ -165,6 +165,13 @@ of only 2 parameters would be retuned:
// returns std::tuple<std::string, double> // returns std::tuple<std::string, double>
auto [name, grade] = p.get_next<std::string, void, double>(); auto [name, grade] = p.get_next<std::string, void, double>();
``` ```
Works with different types of conversions too:
```cpp
using student = std::tuple<std::string, void, double>;
// returns std::tuple<std::string, double>
auto [name, grade] = p.get_next<student>();
```
To ignore a whole row, **ignore_next** could be used, returns **false** if **eof**: To ignore a whole row, **ignore_next** could be used, returns **false** if **eof**:
```cpp ```cpp
bool parser::ignore_next(); bool parser::ignore_next();