// { dg-do compile }
// { dg-require-normal-namespace "" }
// Copyright (C) 2007-2025 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
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING3. If not see
// .
#include
#if __cplusplus >= 201103L
# define NOTHROW noexcept
#else
# define NOTHROW
#endif
namespace std
{
#if __cplusplus >= 201103L
template struct pointer_traits;
template struct pointer_traits;
void* align(size_t alignment, size_t size, void*& ptr, size_t& space) noexcept;
struct allocator_arg_t;
extern const allocator_arg_t allocator_arg;
template struct uses_allocator;
template struct allocator_traits;
#endif // C++11
#if __STDC_HOSTED__
// lib.default.allocator, the default allocator:
template class allocator;
#if __cplusplus >= 202002L
template
constexpr bool operator==(const allocator&, const allocator&) throw();
#else
template <> class allocator;
template
bool operator==(const allocator&, const allocator&) throw();
template
bool operator!=(const allocator&, const allocator&) throw();
#endif
// lib.storage.iterator, raw storage iterator:
template class raw_storage_iterator;
// lib.temporary.buffer, temporary buffers:
template
pair get_temporary_buffer(ptrdiff_t n) NOTHROW;
template
void return_temporary_buffer(T* p);
#endif // HOSTED
// lib.specialized.algorithms, specialized algorithms:
#if __cplusplus >= 201703L
template constexpr T* addressof(T&) noexcept;
#elif __cplusplus >= 201402L
template T* addressof(T&) noexcept;
#endif
template
#if __cplusplus >= 202400L
constexpr
#endif
ForwardIterator
uninitialized_copy(InputIterator first, InputIterator last,
ForwardIterator result);
#if __cplusplus >= 201103L
template
#if __cplusplus >= 202400L
constexpr
#endif
ForwardIterator
uninitialized_copy_n(InputIterator first, Size n, ForwardIterator result);
#endif
template
#if __cplusplus >= 202400L
constexpr
#endif
void uninitialized_fill(ForwardIterator first, ForwardIterator last,
const T& x);
template
#if __cplusplus >= 202400L
constexpr
#endif
void uninitialized_fill_n(ForwardIterator first, Size n, const T& x);
#if __cplusplus >= 201103L
template class default_delete;
template class default_delete;
template class unique_ptr;
template class unique_ptr;
template
void swap(unique_ptr&, unique_ptr&) noexcept;
#if __cplusplus >= 201402L
template unique_ptr make_unique(Args&&...);
#endif
class bad_weak_ptr;
template class shared_ptr;
template shared_ptr make_shared(Args&&... args);
template
shared_ptr allocate_shared(const A& a, Args&&... args);
template void swap(shared_ptr&, shared_ptr&) noexcept;
template class weak_ptr;
template void swap(weak_ptr&, weak_ptr&) noexcept;
template class owner_less;
template class enable_shared_from_this;
template struct hash>;
template struct hash>;
#endif
// lib.auto.ptr, pointers:
template class auto_ptr;
}