2006-08-04 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_queue.h (priority_queue<>::push,
priority_queue<>::pop): Remove try/catch, just follow the
letter of the Standard.
From-SVN: r115923
+2006-08-04 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/stl_queue.h (priority_queue<>::push,
+ priority_queue<>::pop): Remove try/catch, just follow the
+ letter of the Standard.
+
2006-08-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_queue.h: Trivial formatting fixes.
void
push(const value_type& __x)
{
- try
- {
- c.push_back(__x);
- std::push_heap(c.begin(), c.end(), comp);
- }
- catch(...)
- {
- c.clear();
- __throw_exception_again;
- }
+ c.push_back(__x);
+ std::push_heap(c.begin(), c.end(), comp);
}
/**
pop()
{
__glibcxx_requires_nonempty();
- try
- {
- std::pop_heap(c.begin(), c.end(), comp);
- c.pop_back();
- }
- catch(...)
- {
- c.clear();
- __throw_exception_again;
- }
+ std::pop_heap(c.begin(), c.end(), comp);
+ c.pop_back();
}
};