import { IForwardContainer } from "../container/IForwardContainer"; import { Pair } from "../../utility/Pair"; import { Comparator } from "../../internal/functional/Comparator"; /** * Get iterator to lower bound. * * @param range An iterable ranged container. * @param val Value to search for. * @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 Iterator to the first element equal or after the val. */ export declare function lower_bound | IForwardContainer>(range: Range, val: IForwardContainer.ValueType, comp?: Comparator>): IForwardContainer.IteratorType; /** * Get iterator to upper bound. * * @param range An iterable ranged container. * @param val Value to search for. * @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 Iterator to the first element after the key. */ export declare function upper_bound | IForwardContainer>(range: Range, val: IForwardContainer.ValueType, comp?: Comparator>): IForwardContainer.IteratorType; /** * Get range of equal elements. * * @param range An iterable ranged container. * @param val Value to search for. * @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 Pair of {@link lower_bound} and {@link upper_bound}. */ export declare function equal_range | IForwardContainer>(range: Range, val: IForwardContainer.ValueType, comp?: Comparator>): Pair, IForwardContainer.IteratorType>; /** * Test whether a value exists in sorted range. * * @param range An iterable ranged container. * @param val Value to search for. * @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 the value exists or not. */ export declare function binary_search | IForwardContainer>(range: Range, val: IForwardContainer.ValueType, comp?: Comparator>): boolean; //# sourceMappingURL=binary_search.d.ts.map