]> git.ipfire.org Git - thirdparty/gcc.git/commit
stl_heap.h (pop_heap): Check for non-empty range in overload taking a predicate.
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Sun, 4 Dec 2011 13:21:53 +0000 (13:21 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 4 Dec 2011 13:21:53 +0000 (13:21 +0000)
commite13afbace17d25acdad40cc4649b51d28ec42364
treed5211e5511c30596ca85671990c9b529f775faaf
parentfcff2e9c26e8e26222f1a361e959eed1cf0114b8
stl_heap.h (pop_heap): Check for non-empty range in overload taking a predicate.

* include/bits/stl_heap.h (pop_heap): Check for non-empty range in
overload taking a predicate.
* testsuite/25_algorithms/pop_heap/empty2_neg.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r181987
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/testsuite/25_algorithms/pop_heap/empty2_neg.cc [new file with mode: 0644]