mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
[skip ci] Update README
This commit is contained in:
parent
6a3ba48a2c
commit
77a69fbd6d
@ -187,7 +187,7 @@ auto vec = p.get_object<std::vector<std::string>, std::string, std::string>();
|
|||||||
An iterator loop as in the first example which returns objects would look like:
|
An iterator loop as in the first example which returns objects would look like:
|
||||||
```cpp
|
```cpp
|
||||||
for (const student& s : p.iterate_object<student, std::string, int, float>()) {
|
for (const student& s : p.iterate_object<student, std::string, int, float>()) {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
And finally, using something I personally like to do, a struct (class) with a **`tied`** method which returns a tuple of references to to the members of the struct.
|
And finally, using something I personally like to do, a struct (class) with a **`tied`** method which returns a tuple of references to to the members of the struct.
|
||||||
|
Loading…
Reference in New Issue
Block a user