mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +01:00
update README
This commit is contained in:
parent
0aacff5729
commit
5cada3b45a
@ -341,6 +341,8 @@ using student = std::tuple<std::string, void, float>;
|
|||||||
// returns std::tuple<std::string, float>
|
// returns std::tuple<std::string, float>
|
||||||
auto [name, grade] = p.get_next<student>();
|
auto [name, grade] = p.get_next<student>();
|
||||||
```
|
```
|
||||||
|
Values can also be converted to **std::string_view**. It is more efficient then converting values to **std::string** but one must be careful with the lifetime of it.
|
||||||
|
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user