]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/20_util/headers/memory/synopsis.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / headers / memory / synopsis.cc
1 // { dg-do compile }
2 // { dg-require-normal-namespace "" }
3
4 // Copyright (C) 2007-2020 Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 3, or (at your option)
10 // any later version.
11
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16
17 // You should have received a copy of the GNU General Public License along
18 // with this library; see the file COPYING3. If not see
19 // <http://www.gnu.org/licenses/>.
20
21 #include <memory>
22
23 namespace std {
24 // lib.default.allocator, the default allocator:
25 template <class T> class allocator;
26 template <> class allocator<void>;
27 template <class T, class U>
28 #if __cplusplus > 201703L
29 constexpr
30 #endif
31 bool operator==(const allocator<T>&, const allocator<U>&) throw();
32 template <class T, class U>
33 #if __cplusplus > 201703L
34 constexpr
35 #endif
36 bool operator!=(const allocator<T>&, const allocator<U>&) throw();
37
38 // lib.storage.iterator, raw storage iterator:
39 template <class OutputIterator, class T> class raw_storage_iterator;
40
41 // lib.temporary.buffer, temporary buffers:
42 template <class T>
43 pair<T*,ptrdiff_t> get_temporary_buffer(ptrdiff_t n);
44 template <class T>
45 void return_temporary_buffer(T* p);
46
47 // lib.specialized.algorithms, specialized algorithms:
48 template <class InputIterator, class ForwardIterator>
49 ForwardIterator
50 uninitialized_copy(InputIterator first, InputIterator last,
51 ForwardIterator result);
52 template <class ForwardIterator, class T>
53 void uninitialized_fill(ForwardIterator first, ForwardIterator last,
54 const T& x);
55 template <class ForwardIterator, class Size, class T>
56 void uninitialized_fill_n(ForwardIterator first, Size n, const T& x);
57
58 // lib.auto.ptr, pointers:
59 template<class X> class auto_ptr;
60 }