]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/20_util/headers/memory/synopsis.cc
3 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
23 // lib.default.allocator, the default allocator:
24 template <class T
> class allocator
;
25 template <> class allocator
<void>;
26 template <class T
, class U
>
27 bool operator==(const allocator
<T
>&, const allocator
<U
>&) throw();
28 template <class T
, class U
>
29 bool operator!=(const allocator
<T
>&, const allocator
<U
>&) throw();
31 // lib.storage.iterator, raw storage iterator:
32 template <class OutputIterator
, class T
> class raw_storage_iterator
;
34 // lib.temporary.buffer, temporary buffers:
36 pair
<T
*,ptrdiff_t> get_temporary_buffer(ptrdiff_t n
);
38 void return_temporary_buffer(T
* p
);
40 // lib.specialized.algorithms, specialized algorithms:
41 template <class InputIterator
, class ForwardIterator
>
43 uninitialized_copy(InputIterator first
, InputIterator last
,
44 ForwardIterator result
);
45 template <class ForwardIterator
, class T
>
46 void uninitialized_fill(ForwardIterator first
, ForwardIterator last
,
48 template <class ForwardIterator
, class Size
, class T
>
49 void uninitialized_fill_n(ForwardIterator first
, Size n
, const T
& x
);
51 // lib.auto.ptr, pointers:
52 template<class X
> class auto_ptr
;