Optimize std::advance for single increments
authorJonathan Wakely <jwakely@redhat.com>
Mon, 5 Jun 2017 10:34:13 +0000 (11:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 5 Jun 2017 10:34:13 +0000 (11:34 +0100)
commit6c2417786217d33b27e7079647ed5f1b10b235c7
tree6bc2ea8896e22b2dcc0ccc167b52b5e8895759e7
parentd08606ce6ceef0cb9fb2620e7dc2685867ce00df
Optimize std::advance for single increments

* include/bits/stl_iterator_base_funcs.h
(__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
cases where incrementing or decrementing a single step.

From-SVN: r248875
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator_base_funcs.h