/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * */ // Inclusion of this file is DEPRECATED. This is the original HP // default allocator. It is provided only for backward compatibility. // This file WILL BE REMOVED in a future release. // // DO NOT USE THIS FILE unless you have an old container implementation // that requires an allocator with the HP-style interface. // // Standard-conforming allocators have a very different interface. The // standard default allocator is declared in the header . // Adaptation note: THIS version of allocator is fully compatible with // SGI containers and works OK standalone. It is also as close to CD2 version // as possible w/o member templates. // However, explicit use of allocator is not recommended // unless you have to do so ( for example, compiling third-party code). #ifndef _STLP_DEFALLOC_H #define _STLP_DEFALLOC_H # ifndef _STLP_OUTERMOST_HEADER_ID # define _STLP_OUTERMOST_HEADER_ID 0xa005 # include # endif # if defined (_STLP_DEBUG) && ! defined ( _STLP_DEBUG_H ) # include # endif #if defined (_STLP_USE_NEW_STYLE_HEADERS) # include # include # include # include #else # include # include # include # include #endif # include #ifdef _STLP_THREADS # include #endif # if !defined (__THROW_BAD_ALLOC) && !defined(_STLP_USE_EXCEPTIONS) # if defined (_STLP_USE_NEW_STYLE_HEADERS) # include # else # include # endif # endif # include // fbp: just for backwards compatibility, // hope this doesn't break anything. #ifdef _STLP_USE_NAMESPACES # ifdef _STLP_BROKEN_USING_DIRECTIVE using namespace STLPORT; # else using STLPORT::allocator; # endif /* _STLP_BROKEN_USING_DIRECTIVE */ #endif /* _STLP_USE_NAMESPACES */ # if (_STLP_OUTERMOST_HEADER_ID == 0xa005) # include # undef _STLP_OUTERMOST_HEADER_ID # endif #endif /* _STLP_DEFALLOC_H */