Debian Codegraph @

libcxx/test/std/containers/container.adaptors/queue/queue.cons/dtor_noexcept.pass.cpp

raw
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 // <queue>
10
11 // ~queue() // implied noexcept;
12
13 // UNSUPPORTED: c++03
14
15 #include <queue>
16 #include <cassert>
17
18 #include "test_macros.h"
19 #include "MoveOnly.h"
20
21 int main(int, char**)
22 {
23 {
24 typedef std::queue<MoveOnly> C;
25 static_assert(std::is_nothrow_destructible<C>::value, "");
26 }
27
28 return 0;
29 }