How to find normal_iterator going backword has reached past begon()

前端 未结 0 1455
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 18:14
auto itr = lower_bound(arr.begin(), arr.end(), x);
while(itr != arr.rend())
    itr++

Above code give error: no viable conversion from \'__gnu_cxx::__no

相关标签:
回答
  • 消灭零回复
提交回复
热议问题