Specify clear as noexcept

This commit is contained in:
Daniel James
2017-04-20 22:59:00 +01:00
parent 85a834cf62
commit 9cd673c71d
3 changed files with 9 additions and 8 deletions

View File

@@ -554,6 +554,7 @@ void unordered_test(X& x, Key& k, Hash& hf, Pred& eq)
const_iterator q1 = a.cbegin(), q2 = a.cend();
test::check_return_type<iterator>::equals(a.erase(q1, q2));
TEST_NOEXCEPT_EXPR(a.clear());
a.clear();
X const b;