lower_bound == upper_bound

后端 未结 7 1019
陌清茗
陌清茗 2020-12-02 08:51

What does lower_bound mean. If I had to guess I would answer that this function returns the iterator at the last element that is less than the value asked for. But I see tha

相关标签:
7条回答
  • 2020-12-02 09:22

    Auch!

    Did you change the original code or is the copy-paste error in there since day one?

    float operator()(double f)
    {
        SpectrumPoint* l=std::lower_bound//...
    ...
        SpectrumPoint* u=std::lower_bound//...
    ...
    }
    

    In the code I read today you are assigning lower_bound to both 'l' and 'u'.

    0 讨论(0)
提交回复
热议问题