new_allocator_base.h revision 302408
1289177Speter// Base to std::allocator -*- C++ -*- 2289177Speter 3289177Speter// Copyright (C) 2004, 2005 Free Software Foundation, Inc. 4289177Speter// 5289177Speter// This file is part of the GNU ISO C++ Library. This library is free 6289177Speter// software; you can redistribute it and/or modify it under the 7289177Speter// terms of the GNU General Public License as published by the 8289177Speter// Free Software Foundation; either version 2, or (at your option) 9289177Speter// any later version. 10289177Speter 11289177Speter// This library is distributed in the hope that it will be useful, 12289177Speter// but WITHOUT ANY WARRANTY; without even the implied warranty of 13289177Speter// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14289177Speter// GNU General Public License for more details. 15289177Speter 16289177Speter// You should have received a copy of the GNU General Public License along 17289177Speter// with this library; see the file COPYING. If not, write to the Free 18289177Speter// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 19289177Speter// USA. 20289177Speter 21289177Speter// As a special exception, you may use this file as part of a free software 22289177Speter// library without restriction. Specifically, if other files instantiate 23289177Speter// templates or use macros or inline functions from this file, or you compile 24289177Speter// this file and link it with other files to produce an executable, this 25289177Speter// file does not by itself cause the resulting executable to be covered by 26289177Speter// the GNU General Public License. This exception does not however 27289177Speter// invalidate any other reasons why the executable file might be covered by 28289177Speter// the GNU General Public License. 29289177Speter 30289177Speter/** @file c++allocator.h 31289177Speter * This is an internal header file, included by other library headers. 32289177Speter * You should not attempt to use it directly. 33289177Speter */ 34289177Speter 35289177Speter#ifndef _CXX_ALLOCATOR_H 36289177Speter#define _CXX_ALLOCATOR_H 1 37289177Speter 38289177Speter// Define new_allocator as the base class to std::allocator. 39289177Speter#include <ext/new_allocator.h> 40289177Speter#define __glibcxx_base_allocator __gnu_cxx::new_allocator 41289177Speter 42289177Speter#endif 43289177Speter