1 /* Looked up item by item. */ 2 enum e { ENUMSAMPLE_1 = 0, ENUMSAMPLE_2 = 1 }; 3 4 /* Looked up via both sorts of iterator in turn. */ 5 enum ie { IENUMSAMPLE_1 = -10, IENUMSAMPLE_2, IENUMSAMPLE_3 }; 6 7 enum e foo; 8 enum ie bar; 9
1 /* Looked up item by item. */ 2 enum e { ENUMSAMPLE_1 = 0, ENUMSAMPLE_2 = 1 }; 3 4 /* Looked up via both sorts of iterator in turn. */ 5 enum ie { IENUMSAMPLE_1 = -10, IENUMSAMPLE_2, IENUMSAMPLE_3 }; 6 7 enum e foo; 8 enum ie bar; 9