Update iterators.md (#3481)
This commit is contained in:
parent
3af932e3f5
commit
7cef6e79bc
@ -113,7 +113,7 @@ for (auto& [key, val] : j_object.items())
|
|||||||
```cpp
|
```cpp
|
||||||
json j = {1, 2, 3, 4};
|
json j = {1, 2, 3, 4};
|
||||||
|
|
||||||
for (auto it = j.begin(); it != j.end(); ++it)
|
for (auto it = j.rbegin(); it != j.rend(); ++it)
|
||||||
{
|
{
|
||||||
std::cout << *it << std::endl;
|
std::cout << *it << std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user