cgal/Packages/Kernel_23/include/CGAL/memory.h

43 lines
1.2 KiB
C++

// ======================================================================
//
// Copyright (c) 1999 The CGAL Consortium
//
// This software and related documentation is part of an INTERNAL release
// of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use.
//
// ----------------------------------------------------------------------
//
// release :
// release_date :
//
// file : memory.h
// package : Kernel_basic
// revision : $Revision$
// revision_date : $Date$
// author(s) : Michael Seel
//
// coordinator : MPI, Saarbruecken (<Stefan.Schirra@mpi-sb.mpg.de>)
// ======================================================================
#ifndef CGAL_MEMORY_H
#define CGAL_MEMORY_H
#include <memory>
#ifdef CGAL_USE_LEDA
# include <LEDA/allocator.h>
# define CGAL_ALLOCATOR(t) leda_allocator< t >
# define CGAL_ALLOC leda_allocator
#elif defined __SUNPRO_CC
# define CGAL_ALLOCATOR(t) std::allocator_interface< std::allocator< t >, t >
# define CGAL_ALLOC not_possible
#else
# define CGAL_ALLOCATOR(t) std::allocator< t >
# define CGAL_ALLOC std::allocator
#endif
#endif // CGAL_MEMORY_H