import { IBidirectionalContainer } from "../container/IBidirectionalContainer"; import { IForwardContainer } from "../container/IForwardContainer"; import { IForwardIterator } from "../../iterator/IForwardIterator"; import { Writeonly } from "../../internal/functional/Writeonly"; import { Comparator } from "../../internal/functional/Comparator"; /** * Merge two sorted ranges. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param output Output iterator of the first position. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Output Iterator of the last position by advancing. */ export declare function merge | IForwardContainer, Range2 extends IForwardContainer.SimilarType, OutputIterator extends Writeonly, OutputIterator>>>(range1: Range1, range2: Range2, output: OutputIterator, comp?: Comparator>): OutputIterator; /** * Merge two sorted & consecutive ranges. * * @param range An iterable ranged container. * @param middle Bidirectional iterator of the initial position of the 2nd range. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. */ export declare function inplace_merge | IBidirectionalContainer>(range: Range, middle: IBidirectionalContainer.IteratorType, comp?: Comparator>): void; /** * Test whether two sorted ranges are in inclusion relationship. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Whether [first, last1) includes [first2, last2). */ export declare function includes | IForwardContainer, Range2 extends IForwardContainer.SimilarType>(range1: Range1, range2: Range2, comp?: Comparator>): boolean; /** * Combine two sorted ranges to union relationship. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param output Output iterator of the first position. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Output Iterator of the last position by advancing. */ export declare function set_union | IForwardContainer, Range2 extends IForwardContainer.SimilarType, OutputIterator extends Writeonly, OutputIterator>>>(range1: Range1, range2: Range2, output: OutputIterator, comp?: Comparator>): OutputIterator; /** * Combine two sorted ranges to intersection relationship. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param output Output iterator of the first position. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Output Iterator of the last position by advancing. */ export declare function set_intersection | IForwardContainer, Range2 extends IForwardContainer.SimilarType, OutputIterator extends Writeonly, OutputIterator>>>(range1: Range1, range2: Range2, output: OutputIterator, comp?: Comparator>): OutputIterator; /** * Combine two sorted ranges to difference relationship. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param output Output iterator of the first position. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Output Iterator of the last position by advancing. */ export declare function set_difference | IForwardContainer, Range2 extends IForwardContainer.SimilarType, OutputIterator extends Writeonly, OutputIterator>>>(range1: Range1, range2: Range2, output: OutputIterator, comp?: Comparator>): OutputIterator; /** * Combine two sorted ranges to symmetric difference relationship. * * @param range1 The 1st iterable ranged container. * @param range2 The 2nd iterable ranged container. * @param output Output iterator of the first position. * @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}. * * @return Output Iterator of the last position by advancing. */ export declare function set_symmetric_difference | IForwardContainer, Range2 extends IForwardContainer.SimilarType, OutputIterator extends Writeonly, OutputIterator>>>(range1: Range1, range2: Range2, output: OutputIterator, comp?: Comparator>): OutputIterator; //# sourceMappingURL=merge.d.ts.map