// { dg-require-normal-mode "" }
// { dg-require-normal-namespace "" }
-// Copyright (C) 2007-2019 Free Software Foundation, Inc.
+// Copyright (C) 2007-2023 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#include <deque>
+#if __cplusplus >= 201103L
+# define NOTHROW(X) noexcept(X)
+#else
+# define NOTHROW(X)
+#endif
+
namespace std {
template <class T, class Allocator> class deque;
bool operator<= (const deque<T,Allocator>& x, const deque<T,Allocator>& y);
template <class T, class Allocator>
- void swap(deque<T,Allocator>& x, deque<T,Allocator>& y);
+ void swap(deque<T,Allocator>& x, deque<T,Allocator>& y)
+ NOTHROW(noexcept(x.swap(y)));
}