Hi, I am wondering about the efficiency of calling both FindFirstBinAbove and FindLastBinAbove for the same histogram & axis & threshold. I often use these functions to set a proper X range when I have a wider histogram than needed.
Is there anything to be gained from making a single function that finds both at the same time & returns e.g. an std::pair<int,int> or uses two output parameters?
Looking at the implementation, it looks like one searches forward and the other backwards, so maybe there is nothing to be gained, but maybe I am wrong.