View source code
							
							
						
								Display the source code in std/algorithm/setops.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.algorithm.setops.largestPartialIntersectionWeighted
Similar to largestPartialIntersection, but associates a weight
with each distinct element in the intersection.
						
				void largestPartialIntersectionWeighted(alias less, RangeOfRanges, Range, WeightsAA)
				(
				
				  RangeOfRanges ror,
				
				  Range tgt,
				
				  WeightsAA weights,
				
				  SortOutput sorted = No
				);
						
					
				If at least one of the ranges is a multiset, then all occurences
of a duplicate element are taken into account. The result
is equivalent to merging all input ranges and picking the highest
tgt, weight-based ranking elements.
Parameters
| Name | Description | 
|---|---|
| less | The predicate the ranges are sorted by. | 
| ror | A range of forward ranges
    sorted by less. | 
| tgt | The target range to copy common elements to. | 
| weights | An associative array mapping elements to weights. | 
| sorted | Whether the elements copied should be in sorted order. | 
Example
import stdAuthors
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.