MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / reverse_array_iterator

Function reverse_array_iterator

examples/src/array_examples.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void 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
117void reserve_array_capacity()
118{

Callers 1

mainFunction · 0.85

Calls 3

push_backMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45

Tested by

no test coverage detected