compat_hash_map.h

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*!
00003  * \file compat_hash_map.h
00004  * 
00005  * Author: Sergey Berezin
00006  * 
00007  * Created: Jan 31 02:23:26 GMT 2003
00008  *
00009  * <hr>
00010  * Copyright (C) 2003 by the Board of Trustees of Leland Stanford
00011  * Junior University and by New York University. 
00012  *
00013  * License to use, copy, modify, sell and/or distribute this software
00014  * and its documentation for any purpose is hereby granted without
00015  * royalty, subject to the terms and conditions defined in the \ref
00016  * LICENSE file provided with this distribution.  In particular:
00017  *
00018  * - The above copyright notice and this permission notice must appear
00019  * in all copies of the software and related documentation.
00020  *
00021  * - THE SOFTWARE IS PROVIDED "AS-IS", WITHOUT ANY WARRANTIES,
00022  * EXPRESSED OR IMPLIED.  USE IT AT YOUR OWN RISK.
00023  * 
00024  * <hr>
00025  * 
00026  * Compatibility header file for STL extension "hash_map".  Any other
00027  * source file that needs to use hash_map should include this instead.
00028  * 
00029  * If hash_map is not defined in namespace std, we bring it in there.
00030  * It turns out that different versions of gcc use different
00031  * namespaces for STL extensions (std, __gnu_cxx, and God knows
00032  * what'll be next).
00033  * 
00034  * This header assumes that only one of HAVE_*_HASH_MAP symbols is
00035  * defined.
00036  * 
00037  */
00038 /*****************************************************************************/
00039 #ifndef _cvcl__include__compat_hash_map_h_
00040 #define _cvcl__include__compat_hash_map_h_
00041 
00042 #ifdef HAVE_CONFIG_H
00043 #include "config.h"
00044 #endif
00045 
00046 #ifdef HAVE_STD__HASH_MAP
00047 #include <hash_map>
00048 #endif
00049 
00050 #ifdef HAVE___GNU_CXX__HASH_MAP
00051 #include <hash_map>
00052 namespace std {
00053   using __gnu_cxx::hash_map;
00054 };
00055 #endif
00056 
00057 #ifdef HAVE_STD__EXT_HASH_MAP
00058 #include <ext/hash_map>
00059 #endif
00060 
00061 #ifdef HAVE___GNU_CXX__EXT_HASH_MAP
00062 #include <ext/hash_map>
00063 namespace std {
00064   using __gnu_cxx::hash_map;
00065 };
00066 #endif
00067 
00068 #endif

Generated on Thu Apr 13 16:57:30 2006 for CVC Lite by  doxygen 1.4.4