mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 13:59:54 +01:00
[skip ci] Update README
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user