How to use lowerBound and upperBound effectively?

Ali Çehreli acehreli at yahoo.com
Tue Jul 2 17:07:25 UTC 2019


On 07/02/2019 02:27 AM, A. Bressan wrote:

 > contrary to C++, lowerBound and
 > upperBound give the same piece of information because they return
 > complementary sub-ranges.

I don't understand the specific problem but can 'trisect' be useful?

   https://dlang.org/library/std/range/sorted_range.trisect.html

Ali



More information about the Digitalmars-d-learn mailing list