1// { dg-do compile } 2 3// Copyright (C) 2007-2015 Free Software Foundation, Inc. 4// 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) 9// any later version. 10 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. 15 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/>. 19 20#include <memory> 21 22namespace std { 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(); 30 31 // lib.storage.iterator, raw storage iterator: 32 template <class OutputIterator, class T> class raw_storage_iterator; 33 34 // lib.temporary.buffer, temporary buffers: 35 template <class T> 36 pair<T*,ptrdiff_t> get_temporary_buffer(ptrdiff_t n); 37 template <class T> 38 void return_temporary_buffer(T* p); 39 40 // lib.specialized.algorithms, specialized algorithms: 41 template <class InputIterator, class ForwardIterator> 42 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, 47 const T& x); 48 template <class ForwardIterator, class Size, class T> 49 void uninitialized_fill_n(ForwardIterator first, Size n, const T& x); 50 51 // lib.auto.ptr, pointers: 52 template<class X> class auto_ptr; 53} 54