| A. Alexandrescu. Mappings between types and values. C/C++ Users Journal, 18(10), 2000. online column. |
....the set operation views. First, we have to identify the equal ranges in each container. This is done by a basic view the iterators of which move two underlying iterators appropriately through the underlying container. Applied to the example data we get A 0 = 1] 2; 2] 4; 4] and B 0 = [2]; 3] 4; 4] Second, corresponding ranges in the two views have to be identi ed. This is done by another basic view the iterators of which move two iterators one to one through the two underlying containers. The merged example data is then C = 1] 2; 2] 2] 3] 4; 4] 4; ....
....2] 4; 4] and B 0 = 2] 3] 4; 4] Second, corresponding ranges in the two views have to be identi ed. This is done by another basic view the iterators of which move two iterators one to one through the two underlying containers. The merged example data is then C = 1] 2; 2] [2]) 3] 4; 4] 4; 4] On these pairs of ranges, a transformation speci c to each set operation creates an appropriate range from the pair. e.g. the intersection transformation selects the shorter of the two ranges, and the di erence transformation takes maxf0; m ng elements from the ....
[Article contains additional citation context not shown here]
A. Alexandrescu. Mappings between types and values. C/C++ Users Journal, 18(10), 2000. online column.
Online articles have much greater impact More about CiteSeer.IST Add search form to your site Submit documents Feedback
CiteSeer.IST - Copyright Penn State and NEC