| 102 | } |
| 103 | |
| 104 | void reverse_array_iterator() |
| 105 | { |
| 106 | json j(json_array_arg); |
| 107 | j.push_back("Montreal"); |
| 108 | j.push_back("Toronto"); |
| 109 | j.push_back("Vancouver"); |
| 110 | |
| 111 | for (auto it = j.array_range().rbegin(); it != j.array_range().rend(); ++it) |
| 112 | { |
| 113 | std::cout << it->as<std::string>() << '\n'; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void reserve_array_capacity() |
| 118 | { |