mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
update documentation
This commit is contained in:
parent
aec49e7e4f
commit
0ec0c7dd6a
@ -165,6 +165,13 @@ of only 2 parameters would be retuned:
|
||||
// returns std::tuple<std::string, 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**:
|
||||
```cpp
|
||||
bool parser::ignore_next();
|
||||
|
Loading…
Reference in New Issue
Block a user