6571df13b4
2004-10-28 Benjamin Kosnik <bkoz@redhat.com> * include/ext/mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. (__per_type_pool_policy): Same. (__mt_allocator): Don't inherit policy. Qualify policy_type calls. * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix. * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same. * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same. * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same. * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same. * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same. * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same. * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same. * testsuite/ext/mt_allocator/instantiate.cc: Same. * testsuite/ext/mt_allocator/tune-1.cc: Same. * testsuite/ext/mt_allocator/tune-2.cc: Same. * testsuite/ext/mt_allocator/tune-3.cc: Same. * testsuite/ext/mt_allocator/tune-4.cc: Same. From-SVN: r89776
36 lines
1.3 KiB
C++
36 lines
1.3 KiB
C++
// { dg-do compile }
|
|
|
|
// 2001-11-25 Phil Edwards <pme@gcc.gnu.org>
|
|
//
|
|
// Copyright (C) 2001, 2003, 2004 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 2, 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 COPYING. If not, write to the Free
|
|
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
// USA.
|
|
|
|
// 20.4.1.1 allocator members
|
|
|
|
#include <cstdlib>
|
|
#include <ext/mt_allocator.h>
|
|
|
|
using namespace __gnu_cxx;
|
|
template class __mt_alloc<int>;
|
|
template class __mt_alloc<short, __common_pool_policy<__pool, false> >;
|
|
template class __mt_alloc<short, __per_type_pool_policy<short, __pool, false> >;
|
|
#ifdef __GTHREADS
|
|
template class __mt_alloc<short, __common_pool_policy<__pool, true> >;
|
|
template class __mt_alloc<short, __per_type_pool_policy<short, __pool, true> >;
|
|
#endif
|