]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/20_util/headers/memory/synopsis.cc
2 // { dg-require-normal-namespace "" }
4 // Copyright (C) 2007-2020 Free Software Foundation, Inc.
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)
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.
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/>.
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
31 bool operator==(const allocator
<T
>&, const allocator
<U
>&) throw();
32 template <class T
, class U
>
33 #if __cplusplus > 201703L
36 bool operator!=(const allocator
<T
>&, const allocator
<U
>&) throw();
38 // lib.storage.iterator, raw storage iterator:
39 template <class OutputIterator
, class T
> class raw_storage_iterator
;
41 // lib.temporary.buffer, temporary buffers:
43 pair
<T
*,ptrdiff_t> get_temporary_buffer(ptrdiff_t n
);
45 void return_temporary_buffer(T
* p
);
47 // lib.specialized.algorithms, specialized algorithms:
48 template <class InputIterator
, class 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
,
55 template <class ForwardIterator
, class Size
, class T
>
56 void uninitialized_fill_n(ForwardIterator first
, Size n
, const T
& x
);
58 // lib.auto.ptr, pointers:
59 template<class X
> class auto_ptr
;