stl_algobase.h (__equal<true>::equal): Check length instead of checking for null...
authorJonathan Wakely <jwakely@redhat.com>
Sat, 30 May 2015 11:44:02 +0000 (12:44 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 30 May 2015 11:44:02 +0000 (12:44 +0100)
commit12fc64ac3a49bcd0bab8f18fbff08f58992d3942
tree6f6e8369e567de7fd8c5c20ad4411ab2710e9574
parent7d21a61eb5c0a7d12fa4b2bf2dfcb5ca7398a5bb
stl_algobase.h (__equal<true>::equal): Check length instead of checking for null pointers.

* include/bits/stl_algobase.h (__equal<true>::equal): Check length
instead of checking for null pointers.
(__lexicographical_compare<true>::__lc): Only check shorter length.

From-SVN: r223886
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h