Lines Matching refs:it

21             json::iterator it;
22 CHECK(it.m_object == nullptr);
35 json::iterator it = j.begin();
36 CHECK(it != j.end());
37 CHECK(*it == j);
39 it++;
40 CHECK(it != j.begin());
41 CHECK(it == j.end());
43 it--;
44 CHECK(it == j.begin());
45 CHECK(it != j.end());
46 CHECK(*it == j);
48 ++it;
49 CHECK(it != j.begin());
50 CHECK(it == j.end());
52 --it;
53 CHECK(it == j.begin());
54 CHECK(it != j.end());
55 CHECK(*it == j);
60 json::const_iterator it = j_const.begin();
61 CHECK(it != j_const.end());
62 CHECK(*it == j_const);
64 it++;
65 CHECK(it != j_const.begin());
66 CHECK(it == j_const.end());
68 it--;
69 CHECK(it == j_const.begin());
70 CHECK(it != j_const.end());
71 CHECK(*it == j_const);
73 ++it;
74 CHECK(it != j_const.begin());
75 CHECK(it == j_const.end());
77 --it;
78 CHECK(it == j_const.begin());
79 CHECK(it != j_const.end());
80 CHECK(*it == j_const);
85 json::const_iterator it = j.cbegin();
86 CHECK(it != j.cend());
87 CHECK(*it == j);
89 it++;
90 CHECK(it != j.cbegin());
91 CHECK(it == j.cend());
93 it--;
94 CHECK(it == j.cbegin());
95 CHECK(it != j.cend());
96 CHECK(*it == j);
98 ++it;
99 CHECK(it != j.cbegin());
100 CHECK(it == j.cend());
102 --it;
103 CHECK(it == j.cbegin());
104 CHECK(it != j.cend());
105 CHECK(*it == j);
110 json::const_iterator it = j_const.cbegin();
111 CHECK(it != j_const.cend());
112 CHECK(*it == j_const);
114 it++;
115 CHECK(it != j_const.cbegin());
116 CHECK(it == j_const.cend());
118 it--;
119 CHECK(it == j_const.cbegin());
120 CHECK(it != j_const.cend());
121 CHECK(*it == j_const);
123 ++it;
124 CHECK(it != j_const.cbegin());
125 CHECK(it == j_const.cend());
127 --it;
128 CHECK(it == j_const.cbegin());
129 CHECK(it != j_const.cend());
130 CHECK(*it == j_const);
135 json::reverse_iterator it = j.rbegin();
136 CHECK(it != j.rend());
137 CHECK(*it == j);
139 it++;
140 CHECK(it != j.rbegin());
141 CHECK(it == j.rend());
143 it--;
144 CHECK(it == j.rbegin());
145 CHECK(it != j.rend());
146 CHECK(*it == j);
148 ++it;
149 CHECK(it != j.rbegin());
150 CHECK(it == j.rend());
152 --it;
153 CHECK(it == j.rbegin());
154 CHECK(it != j.rend());
155 CHECK(*it == j);
160 json::const_reverse_iterator it = j.crbegin();
161 CHECK(it != j.crend());
162 CHECK(*it == j);
164 it++;
165 CHECK(it != j.crbegin());
166 CHECK(it == j.crend());
168 it--;
169 CHECK(it == j.crbegin());
170 CHECK(it != j.crend());
171 CHECK(*it == j);
173 ++it;
174 CHECK(it != j.crbegin());
175 CHECK(it == j.crend());
177 --it;
178 CHECK(it == j.crbegin());
179 CHECK(it != j.crend());
180 CHECK(*it == j);
185 json::const_reverse_iterator it = j_const.crbegin();
186 CHECK(it != j_const.crend());
187 CHECK(*it == j_const);
189 it++;
190 CHECK(it != j_const.crbegin());
191 CHECK(it == j_const.crend());
193 it--;
194 CHECK(it == j_const.crbegin());
195 CHECK(it != j_const.crend());
196 CHECK(*it == j_const);
198 ++it;
199 CHECK(it != j_const.crbegin());
200 CHECK(it == j_const.crend());
202 --it;
203 CHECK(it == j_const.crbegin());
204 CHECK(it != j_const.crend());
205 CHECK(*it == j_const);
318 auto it = j.begin();
320 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
321 CHECK(it.value() == json(true));
341 json::iterator it = j.begin();
342 CHECK(it != j.end());
343 CHECK(*it == j);
345 it++;
346 CHECK(it != j.begin());
347 CHECK(it == j.end());
349 it--;
350 CHECK(it == j.begin());
351 CHECK(it != j.end());
352 CHECK(*it == j);
354 ++it;
355 CHECK(it != j.begin());
356 CHECK(it == j.end());
358 --it;
359 CHECK(it == j.begin());
360 CHECK(it != j.end());
361 CHECK(*it == j);
366 json::const_iterator it = j_const.begin();
367 CHECK(it != j_const.end());
368 CHECK(*it == j_const);
370 it++;
371 CHECK(it != j_const.begin());
372 CHECK(it == j_const.end());
374 it--;
375 CHECK(it == j_const.begin());
376 CHECK(it != j_const.end());
377 CHECK(*it == j_const);
379 ++it;
380 CHECK(it != j_const.begin());
381 CHECK(it == j_const.end());
383 --it;
384 CHECK(it == j_const.begin());
385 CHECK(it != j_const.end());
386 CHECK(*it == j_const);
391 json::const_iterator it = j.cbegin();
392 CHECK(it != j.cend());
393 CHECK(*it == j);
395 it++;
396 CHECK(it != j.cbegin());
397 CHECK(it == j.cend());
399 it--;
400 CHECK(it == j.cbegin());
401 CHECK(it != j.cend());
402 CHECK(*it == j);
404 ++it;
405 CHECK(it != j.cbegin());
406 CHECK(it == j.cend());
408 --it;
409 CHECK(it == j.cbegin());
410 CHECK(it != j.cend());
411 CHECK(*it == j);
416 json::const_iterator it = j_const.cbegin();
417 CHECK(it != j_const.cend());
418 CHECK(*it == j_const);
420 it++;
421 CHECK(it != j_const.cbegin());
422 CHECK(it == j_const.cend());
424 it--;
425 CHECK(it == j_const.cbegin());
426 CHECK(it != j_const.cend());
427 CHECK(*it == j_const);
429 ++it;
430 CHECK(it != j_const.cbegin());
431 CHECK(it == j_const.cend());
433 --it;
434 CHECK(it == j_const.cbegin());
435 CHECK(it != j_const.cend());
436 CHECK(*it == j_const);
441 json::reverse_iterator it = j.rbegin();
442 CHECK(it != j.rend());
443 CHECK(*it == j);
445 it++;
446 CHECK(it != j.rbegin());
447 CHECK(it == j.rend());
449 it--;
450 CHECK(it == j.rbegin());
451 CHECK(it != j.rend());
452 CHECK(*it == j);
454 ++it;
455 CHECK(it != j.rbegin());
456 CHECK(it == j.rend());
458 --it;
459 CHECK(it == j.rbegin());
460 CHECK(it != j.rend());
461 CHECK(*it == j);
466 json::const_reverse_iterator it = j.crbegin();
467 CHECK(it != j.crend());
468 CHECK(*it == j);
470 it++;
471 CHECK(it != j.crbegin());
472 CHECK(it == j.crend());
474 it--;
475 CHECK(it == j.crbegin());
476 CHECK(it != j.crend());
477 CHECK(*it == j);
479 ++it;
480 CHECK(it != j.crbegin());
481 CHECK(it == j.crend());
483 --it;
484 CHECK(it == j.crbegin());
485 CHECK(it != j.crend());
486 CHECK(*it == j);
491 json::const_reverse_iterator it = j_const.crbegin();
492 CHECK(it != j_const.crend());
493 CHECK(*it == j_const);
495 it++;
496 CHECK(it != j_const.crbegin());
497 CHECK(it == j_const.crend());
499 it--;
500 CHECK(it == j_const.crbegin());
501 CHECK(it != j_const.crend());
502 CHECK(*it == j_const);
504 ++it;
505 CHECK(it != j_const.crbegin());
506 CHECK(it == j_const.crend());
508 --it;
509 CHECK(it == j_const.crbegin());
510 CHECK(it != j_const.crend());
511 CHECK(*it == j_const);
516 auto it = j.begin();
518 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
519 CHECK(it.value() == json("hello world"));
542 auto it = it_begin;
543 CHECK(it != it_end);
544 CHECK(*it == j[0]);
546 it++;
547 CHECK(it != it_begin);
548 CHECK(it != it_end);
549 CHECK(*it == j[1]);
551 ++it;
552 CHECK(it != it_begin);
553 CHECK(it != it_end);
554 CHECK(*it == j[2]);
556 ++it;
557 CHECK(it != it_begin);
558 CHECK(it == it_end);
566 auto it = it_begin;
567 CHECK(it != it_end);
568 CHECK(*it == j_const[0]);
570 it++;
571 CHECK(it != it_begin);
572 CHECK(it != it_end);
573 CHECK(*it == j_const[1]);
575 ++it;
576 CHECK(it != it_begin);
577 CHECK(it != it_end);
578 CHECK(*it == j_const[2]);
580 ++it;
581 CHECK(it != it_begin);
582 CHECK(it == it_end);
590 auto it = it_begin;
591 CHECK(it != it_end);
592 CHECK(*it == j[0]);
594 it++;
595 CHECK(it != it_begin);
596 CHECK(it != it_end);
597 CHECK(*it == j[1]);
599 ++it;
600 CHECK(it != it_begin);
601 CHECK(it != it_end);
602 CHECK(*it == j[2]);
604 ++it;
605 CHECK(it != it_begin);
606 CHECK(it == it_end);
614 auto it = it_begin;
615 CHECK(it != it_end);
616 CHECK(*it == j[0]);
618 it++;
619 CHECK(it != it_begin);
620 CHECK(it != it_end);
621 CHECK(*it == j[1]);
623 ++it;
624 CHECK(it != it_begin);
625 CHECK(it != it_end);
626 CHECK(*it == j[2]);
628 ++it;
629 CHECK(it != it_begin);
630 CHECK(it == it_end);
638 auto it = it_begin;
639 CHECK(it != it_end);
640 CHECK(*it == j[2]);
642 it++;
643 CHECK(it != it_begin);
644 CHECK(it != it_end);
645 CHECK(*it == j[1]);
647 ++it;
648 CHECK(it != it_begin);
649 CHECK(it != it_end);
650 CHECK(*it == j[0]);
652 ++it;
653 CHECK(it != it_begin);
654 CHECK(it == it_end);
662 auto it = it_begin;
663 CHECK(it != it_end);
664 CHECK(*it == j[2]);
666 it++;
667 CHECK(it != it_begin);
668 CHECK(it != it_end);
669 CHECK(*it == j[1]);
671 ++it;
672 CHECK(it != it_begin);
673 CHECK(it != it_end);
674 CHECK(*it == j[0]);
676 ++it;
677 CHECK(it != it_begin);
678 CHECK(it == it_end);
686 auto it = it_begin;
687 CHECK(it != it_end);
688 CHECK(*it == j[2]);
690 it++;
691 CHECK(it != it_begin);
692 CHECK(it != it_end);
693 CHECK(*it == j[1]);
695 ++it;
696 CHECK(it != it_begin);
697 CHECK(it != it_end);
698 CHECK(*it == j[0]);
700 ++it;
701 CHECK(it != it_begin);
702 CHECK(it == it_end);
707 auto it = j.begin();
709 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
710 CHECK(it.value() == json(1));
726 auto it = it_begin;
727 CHECK(it != it_end);
728 CHECK(*it == j["A"]);
730 it++;
731 CHECK(it != it_begin);
732 CHECK(it != it_end);
733 CHECK(*it == j["B"]);
735 ++it;
736 CHECK(it != it_begin);
737 CHECK(it != it_end);
738 CHECK(*it == j["C"]);
740 ++it;
741 CHECK(it != it_begin);
742 CHECK(it == it_end);
750 auto it = it_begin;
751 CHECK(it != it_end);
752 CHECK(*it == j_const["A"]);
754 it++;
755 CHECK(it != it_begin);
756 CHECK(it != it_end);
757 CHECK(*it == j_const["B"]);
759 ++it;
760 CHECK(it != it_begin);
761 CHECK(it != it_end);
762 CHECK(*it == j_const["C"]);
764 ++it;
765 CHECK(it != it_begin);
766 CHECK(it == it_end);
774 auto it = it_begin;
775 CHECK(it != it_end);
776 CHECK(*it == j["A"]);
778 it++;
779 CHECK(it != it_begin);
780 CHECK(it != it_end);
781 CHECK(*it == j["B"]);
783 ++it;
784 CHECK(it != it_begin);
785 CHECK(it != it_end);
786 CHECK(*it == j["C"]);
788 ++it;
789 CHECK(it != it_begin);
790 CHECK(it == it_end);
798 auto it = it_begin;
799 CHECK(it != it_end);
800 CHECK(*it == j_const["A"]);
802 it++;
803 CHECK(it != it_begin);
804 CHECK(it != it_end);
805 CHECK(*it == j_const["B"]);
807 ++it;
808 CHECK(it != it_begin);
809 CHECK(it != it_end);
810 CHECK(*it == j_const["C"]);
812 ++it;
813 CHECK(it != it_begin);
814 CHECK(it == it_end);
822 auto it = it_begin;
823 CHECK(it != it_end);
824 CHECK(*it == j["C"]);
826 it++;
827 CHECK(it != it_begin);
828 CHECK(it != it_end);
829 CHECK(*it == j["B"]);
831 ++it;
832 CHECK(it != it_begin);
833 CHECK(it != it_end);
834 CHECK(*it == j["A"]);
836 ++it;
837 CHECK(it != it_begin);
838 CHECK(it == it_end);
846 auto it = it_begin;
847 CHECK(it != it_end);
848 CHECK(*it == j["C"]);
850 it++;
851 CHECK(it != it_begin);
852 CHECK(it != it_end);
853 CHECK(*it == j["B"]);
855 ++it;
856 CHECK(it != it_begin);
857 CHECK(it != it_end);
858 CHECK(*it == j["A"]);
860 ++it;
861 CHECK(it != it_begin);
862 CHECK(it == it_end);
870 auto it = it_begin;
871 CHECK(it != it_end);
872 CHECK(*it == j["C"]);
874 it++;
875 CHECK(it != it_begin);
876 CHECK(it != it_end);
877 CHECK(*it == j["B"]);
879 ++it;
880 CHECK(it != it_begin);
881 CHECK(it != it_end);
882 CHECK(*it == j["A"]);
884 ++it;
885 CHECK(it != it_begin);
886 CHECK(it == it_end);
891 auto it = j.begin();
893 CHECK(it.key() == "A");
894 CHECK(it.value() == json(1));
907 json::iterator it = j.begin();
908 CHECK(it != j.end());
909 CHECK(*it == j);
911 it++;
912 CHECK(it != j.begin());
913 CHECK(it == j.end());
915 it--;
916 CHECK(it == j.begin());
917 CHECK(it != j.end());
918 CHECK(*it == j);
920 ++it;
921 CHECK(it != j.begin());
922 CHECK(it == j.end());
924 --it;
925 CHECK(it == j.begin());
926 CHECK(it != j.end());
927 CHECK(*it == j);
932 json::const_iterator it = j_const.begin();
933 CHECK(it != j_const.end());
934 CHECK(*it == j_const);
936 it++;
937 CHECK(it != j_const.begin());
938 CHECK(it == j_const.end());
940 it--;
941 CHECK(it == j_const.begin());
942 CHECK(it != j_const.end());
943 CHECK(*it == j_const);
945 ++it;
946 CHECK(it != j_const.begin());
947 CHECK(it == j_const.end());
949 --it;
950 CHECK(it == j_const.begin());
951 CHECK(it != j_const.end());
952 CHECK(*it == j_const);
957 json::const_iterator it = j.cbegin();
958 CHECK(it != j.cend());
959 CHECK(*it == j);
961 it++;
962 CHECK(it != j.cbegin());
963 CHECK(it == j.cend());
965 it--;
966 CHECK(it == j.cbegin());
967 CHECK(it != j.cend());
968 CHECK(*it == j);
970 ++it;
971 CHECK(it != j.cbegin());
972 CHECK(it == j.cend());
974 --it;
975 CHECK(it == j.cbegin());
976 CHECK(it != j.cend());
977 CHECK(*it == j);
982 json::const_iterator it = j_const.cbegin();
983 CHECK(it != j_const.cend());
984 CHECK(*it == j_const);
986 it++;
987 CHECK(it != j_const.cbegin());
988 CHECK(it == j_const.cend());
990 it--;
991 CHECK(it == j_const.cbegin());
992 CHECK(it != j_const.cend());
993 CHECK(*it == j_const);
995 ++it;
996 CHECK(it != j_const.cbegin());
997 CHECK(it == j_const.cend());
999 --it;
1000 CHECK(it == j_const.cbegin());
1001 CHECK(it != j_const.cend());
1002 CHECK(*it == j_const);
1007 json::reverse_iterator it = j.rbegin();
1008 CHECK(it != j.rend());
1009 CHECK(*it == j);
1011 it++;
1012 CHECK(it != j.rbegin());
1013 CHECK(it == j.rend());
1015 it--;
1016 CHECK(it == j.rbegin());
1017 CHECK(it != j.rend());
1018 CHECK(*it == j);
1020 ++it;
1021 CHECK(it != j.rbegin());
1022 CHECK(it == j.rend());
1024 --it;
1025 CHECK(it == j.rbegin());
1026 CHECK(it != j.rend());
1027 CHECK(*it == j);
1032 json::const_reverse_iterator it = j.crbegin();
1033 CHECK(it != j.crend());
1034 CHECK(*it == j);
1036 it++;
1037 CHECK(it != j.crbegin());
1038 CHECK(it == j.crend());
1040 it--;
1041 CHECK(it == j.crbegin());
1042 CHECK(it != j.crend());
1043 CHECK(*it == j);
1045 ++it;
1046 CHECK(it != j.crbegin());
1047 CHECK(it == j.crend());
1049 --it;
1050 CHECK(it == j.crbegin());
1051 CHECK(it != j.crend());
1052 CHECK(*it == j);
1057 json::const_reverse_iterator it = j_const.crbegin();
1058 CHECK(it != j_const.crend());
1059 CHECK(*it == j_const);
1061 it++;
1062 CHECK(it != j_const.crbegin());
1063 CHECK(it == j_const.crend());
1065 it--;
1066 CHECK(it == j_const.crbegin());
1067 CHECK(it != j_const.crend());
1068 CHECK(*it == j_const);
1070 ++it;
1071 CHECK(it != j_const.crbegin());
1072 CHECK(it == j_const.crend());
1074 --it;
1075 CHECK(it == j_const.crbegin());
1076 CHECK(it != j_const.crend());
1077 CHECK(*it == j_const);
1082 auto it = j.begin();
1084 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
1085 CHECK(it.value() == json(23));
1105 json::iterator it = j.begin();
1106 CHECK(it != j.end());
1107 CHECK(*it == j);
1109 it++;
1110 CHECK(it != j.begin());
1111 CHECK(it == j.end());
1113 it--;
1114 CHECK(it == j.begin());
1115 CHECK(it != j.end());
1116 CHECK(*it == j);
1118 ++it;
1119 CHECK(it != j.begin());
1120 CHECK(it == j.end());
1122 --it;
1123 CHECK(it == j.begin());
1124 CHECK(it != j.end());
1125 CHECK(*it == j);
1130 json::const_iterator it = j_const.begin();
1131 CHECK(it != j_const.end());
1132 CHECK(*it == j_const);
1134 it++;
1135 CHECK(it != j_const.begin());
1136 CHECK(it == j_const.end());
1138 it--;
1139 CHECK(it == j_const.begin());
1140 CHECK(it != j_const.end());
1141 CHECK(*it == j_const);
1143 ++it;
1144 CHECK(it != j_const.begin());
1145 CHECK(it == j_const.end());
1147 --it;
1148 CHECK(it == j_const.begin());
1149 CHECK(it != j_const.end());
1150 CHECK(*it == j_const);
1155 json::const_iterator it = j.cbegin();
1156 CHECK(it != j.cend());
1157 CHECK(*it == j);
1159 it++;
1160 CHECK(it != j.cbegin());
1161 CHECK(it == j.cend());
1163 it--;
1164 CHECK(it == j.cbegin());
1165 CHECK(it != j.cend());
1166 CHECK(*it == j);
1168 ++it;
1169 CHECK(it != j.cbegin());
1170 CHECK(it == j.cend());
1172 --it;
1173 CHECK(it == j.cbegin());
1174 CHECK(it != j.cend());
1175 CHECK(*it == j);
1180 json::const_iterator it = j_const.cbegin();
1181 CHECK(it != j_const.cend());
1182 CHECK(*it == j_const);
1184 it++;
1185 CHECK(it != j_const.cbegin());
1186 CHECK(it == j_const.cend());
1188 it--;
1189 CHECK(it == j_const.cbegin());
1190 CHECK(it != j_const.cend());
1191 CHECK(*it == j_const);
1193 ++it;
1194 CHECK(it != j_const.cbegin());
1195 CHECK(it == j_const.cend());
1197 --it;
1198 CHECK(it == j_const.cbegin());
1199 CHECK(it != j_const.cend());
1200 CHECK(*it == j_const);
1205 json::reverse_iterator it = j.rbegin();
1206 CHECK(it != j.rend());
1207 CHECK(*it == j);
1209 it++;
1210 CHECK(it != j.rbegin());
1211 CHECK(it == j.rend());
1213 it--;
1214 CHECK(it == j.rbegin());
1215 CHECK(it != j.rend());
1216 CHECK(*it == j);
1218 ++it;
1219 CHECK(it != j.rbegin());
1220 CHECK(it == j.rend());
1222 --it;
1223 CHECK(it == j.rbegin());
1224 CHECK(it != j.rend());
1225 CHECK(*it == j);
1230 json::const_reverse_iterator it = j.crbegin();
1231 CHECK(it != j.crend());
1232 CHECK(*it == j);
1234 it++;
1235 CHECK(it != j.crbegin());
1236 CHECK(it == j.crend());
1238 it--;
1239 CHECK(it == j.crbegin());
1240 CHECK(it != j.crend());
1241 CHECK(*it == j);
1243 ++it;
1244 CHECK(it != j.crbegin());
1245 CHECK(it == j.crend());
1247 --it;
1248 CHECK(it == j.crbegin());
1249 CHECK(it != j.crend());
1250 CHECK(*it == j);
1255 json::const_reverse_iterator it = j_const.crbegin();
1256 CHECK(it != j_const.crend());
1257 CHECK(*it == j_const);
1259 it++;
1260 CHECK(it != j_const.crbegin());
1261 CHECK(it == j_const.crend());
1263 it--;
1264 CHECK(it == j_const.crbegin());
1265 CHECK(it != j_const.crend());
1266 CHECK(*it == j_const);
1268 ++it;
1269 CHECK(it != j_const.crbegin());
1270 CHECK(it == j_const.crend());
1272 --it;
1273 CHECK(it == j_const.crbegin());
1274 CHECK(it != j_const.crend());
1275 CHECK(*it == j_const);
1280 auto it = j.begin();
1282 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
1283 CHECK(it.value() == json(23));
1303 json::iterator it = j.begin();
1304 CHECK(it != j.end());
1305 CHECK(*it == j);
1307 it++;
1308 CHECK(it != j.begin());
1309 CHECK(it == j.end());
1311 it--;
1312 CHECK(it == j.begin());
1313 CHECK(it != j.end());
1314 CHECK(*it == j);
1316 ++it;
1317 CHECK(it != j.begin());
1318 CHECK(it == j.end());
1320 --it;
1321 CHECK(it == j.begin());
1322 CHECK(it != j.end());
1323 CHECK(*it == j);
1328 json::const_iterator it = j_const.begin();
1329 CHECK(it != j_const.end());
1330 CHECK(*it == j_const);
1332 it++;
1333 CHECK(it != j_const.begin());
1334 CHECK(it == j_const.end());
1336 it--;
1337 CHECK(it == j_const.begin());
1338 CHECK(it != j_const.end());
1339 CHECK(*it == j_const);
1341 ++it;
1342 CHECK(it != j_const.begin());
1343 CHECK(it == j_const.end());
1345 --it;
1346 CHECK(it == j_const.begin());
1347 CHECK(it != j_const.end());
1348 CHECK(*it == j_const);
1353 json::const_iterator it = j.cbegin();
1354 CHECK(it != j.cend());
1355 CHECK(*it == j);
1357 it++;
1358 CHECK(it != j.cbegin());
1359 CHECK(it == j.cend());
1361 it--;
1362 CHECK(it == j.cbegin());
1363 CHECK(it != j.cend());
1364 CHECK(*it == j);
1366 ++it;
1367 CHECK(it != j.cbegin());
1368 CHECK(it == j.cend());
1370 --it;
1371 CHECK(it == j.cbegin());
1372 CHECK(it != j.cend());
1373 CHECK(*it == j);
1378 json::const_iterator it = j_const.cbegin();
1379 CHECK(it != j_const.cend());
1380 CHECK(*it == j_const);
1382 it++;
1383 CHECK(it != j_const.cbegin());
1384 CHECK(it == j_const.cend());
1386 it--;
1387 CHECK(it == j_const.cbegin());
1388 CHECK(it != j_const.cend());
1389 CHECK(*it == j_const);
1391 ++it;
1392 CHECK(it != j_const.cbegin());
1393 CHECK(it == j_const.cend());
1395 --it;
1396 CHECK(it == j_const.cbegin());
1397 CHECK(it != j_const.cend());
1398 CHECK(*it == j_const);
1403 json::reverse_iterator it = j.rbegin();
1404 CHECK(it != j.rend());
1405 CHECK(*it == j);
1407 it++;
1408 CHECK(it != j.rbegin());
1409 CHECK(it == j.rend());
1411 it--;
1412 CHECK(it == j.rbegin());
1413 CHECK(it != j.rend());
1414 CHECK(*it == j);
1416 ++it;
1417 CHECK(it != j.rbegin());
1418 CHECK(it == j.rend());
1420 --it;
1421 CHECK(it == j.rbegin());
1422 CHECK(it != j.rend());
1423 CHECK(*it == j);
1428 json::const_reverse_iterator it = j.crbegin();
1429 CHECK(it != j.crend());
1430 CHECK(*it == j);
1432 it++;
1433 CHECK(it != j.crbegin());
1434 CHECK(it == j.crend());
1436 it--;
1437 CHECK(it == j.crbegin());
1438 CHECK(it != j.crend());
1439 CHECK(*it == j);
1441 ++it;
1442 CHECK(it != j.crbegin());
1443 CHECK(it == j.crend());
1445 --it;
1446 CHECK(it == j.crbegin());
1447 CHECK(it != j.crend());
1448 CHECK(*it == j);
1453 json::const_reverse_iterator it = j_const.crbegin();
1454 CHECK(it != j_const.crend());
1455 CHECK(*it == j_const);
1457 it++;
1458 CHECK(it != j_const.crbegin());
1459 CHECK(it == j_const.crend());
1461 it--;
1462 CHECK(it == j_const.crbegin());
1463 CHECK(it != j_const.crend());
1464 CHECK(*it == j_const);
1466 ++it;
1467 CHECK(it != j_const.crbegin());
1468 CHECK(it == j_const.crend());
1470 --it;
1471 CHECK(it == j_const.crbegin());
1472 CHECK(it != j_const.crend());
1473 CHECK(*it == j_const);
1478 auto it = j.begin();
1480 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
1481 CHECK(it.value() == json(23.42));
1501 json::iterator it = j.begin();
1502 CHECK(it == j.end());
1528 json::reverse_iterator it = j.rbegin();
1529 CHECK(it == j.rend());
1534 json::const_reverse_iterator it = j.crbegin();
1535 CHECK(it == j.crend());
1540 json::const_reverse_iterator it = j_const.crbegin();
1541 CHECK(it == j_const.crend());
1546 auto it = j.begin();
1548 CHECK_THROWS_WITH_AS(it.key(), "[json.exception.invalid_iterator.207] cannot use key() for non-object iterators", json::invalid_iterator&);
1549 CHECK_THROWS_WITH_AS(it.value(), "[json.exception.invalid_iterator.214] cannot get value", json::invalid_iterator&);
1568 json::const_iterator it = j.begin();
1569 CHECK(it == j.cbegin());
1570 it = j.begin();
1571 CHECK(it == j.cbegin());
1576 json::const_iterator it = j.begin();
1577 CHECK(it == j.cbegin());
1578 it = j.begin();
1579 CHECK(it == j.cbegin());
1584 json::const_iterator it = j.begin();
1585 CHECK(it == j.cbegin());
1586 it = j.begin();
1587 CHECK(it == j.cbegin());
1592 json::const_iterator it = j.begin();
1593 CHECK(it == j.cbegin());
1594 it = j.begin();
1595 CHECK(it == j.cbegin());
1600 json::const_iterator it = j.begin();
1601 CHECK(it == j.cbegin());
1602 it = j.begin();
1603 CHECK(it == j.cbegin());
1608 json::const_iterator it = j.begin();
1609 CHECK(it == j.cbegin());
1610 it = j.begin();
1611 CHECK(it == j.cbegin());
1616 json::const_iterator it = j.begin();
1617 CHECK(it == j.cbegin());
1618 it = j.begin();
1619 CHECK(it == j.cbegin());
1624 json::const_iterator it = j.begin();
1625 CHECK(it == j.cbegin());
1626 it = j.begin();
1627 CHECK(it == j.cbegin());