// { dg-do compile }
// { dg-require-normal-mode "" }
+// { dg-require-normal-namespace "" }
-// Copyright (C) 2007-2013 Free Software Foundation, Inc.
+// Copyright (C) 2007-2024 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 <map>
+#if __cplusplus >= 201103L
+# define NOTHROW(X) noexcept(X)
+#else
+# define NOTHROW(X)
+#endif
+
namespace std {
template <class Key, class T, class Compare, class Allocator>
class map;
const map<Key,T,Compare,Allocator>& y);
template <class Key, class T, class Compare, class Allocator>
void swap(map<Key,T,Compare,Allocator>& x,
- map<Key,T,Compare,Allocator>& y);
+ map<Key,T,Compare,Allocator>& y)
+ NOTHROW(noexcept(x.swap(y)));
template <class Key, class T, class Compare, class Allocator>
class multimap;
const multimap<Key,T,Compare,Allocator>& y);
template <class Key, class T, class Compare, class Allocator>
void swap(multimap<Key,T,Compare,Allocator>& x,
- multimap<Key,T,Compare,Allocator>& y);
+ multimap<Key,T,Compare,Allocator>& y)
+ NOTHROW(noexcept(x.swap(y)));
}