From 7fc5eab0ab4a054eb0384b5608ed465241b47547 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 9 Feb 2006 16:29:09 +0000 Subject: [PATCH] Add hash table and slist headers and docs [SVN r32773] --- config.htm | 28 ++++++++++++++++++++++++---- include/boost/config/suffix.hpp | 14 ++++++++++++++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/config.htm b/config.htm index 42fa55c9..42f29a44 100644 --- a/config.htm +++ b/config.htm @@ -863,8 +863,12 @@ void g() { return f(); } BOOST_HAS_HASH Standard library - The C++ implementation provides the (SGI) hash_set or - hash_map classes. + The C++ implementation provides the (SGI) hash_set and + hash_map classes. When defined, + BOOST_HASH_SET_HEADER and BOOST_HASH_LIST_HEADER will contain the names of the header + needed to access hash_set and hash_map; BOOST_STD_EXTENSION_NAMESPACE + will provide the namespace in which the two class templates + reside. BOOST_HAS_LOG1P @@ -950,8 +954,12 @@ void g() { return f(); } BOOST_HAS_SLIST Standard library - The C++ implementation provides the (SGI) slist - class. + The C++ implementation + provides the (SGI) slist class. When defined, + BOOST_SLIST_HEADER will contain the name of the header + needed to access slist and BOOST_STD_EXTENSION_NAMESPACE + will provide the namespace in which slist + resides. BOOST_HAS_STLP_USE_FACET @@ -1137,6 +1145,18 @@ void g() { return f(); }
template <class T> void f(T, BOOST_DEDUCED_TYPENAME T::type);
+ + BOOST_HASH_MAP_HEADER + The header to include to get the SGI hash_map class. This macro is only available if BOOST_HAS_HASH is defined. + + + BOOST_HASH_SET_HEADER + The header to include to get the SGI hash_set class. This macro is only available if BOOST_HAS_HASH is defined. + + + BOOST_SLIST_HEADER + The header to include to get the SGI slist class. This macro is only available if BOOST_HAS_SLIST is defined. + BOOST_STD_EXTENSION_NAMESPACE The namespace used for std library extensions (hashtable classes etc). diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 6a0f5738..61a8d46a 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -271,6 +271,20 @@ # define BOOST_SLIST_HEADER #endif +// +// Set BOOST_HASH_SET_HEADER if not set already: +// +#if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_SET_HEADER) +# define BOOST_HASH_SET_HEADER +#endif + +// +// Set BOOST_HASH_MAP_HEADER if not set already: +// +#if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_MAP_HEADER) +# define BOOST_HASH_MAP_HEADER +#endif + // BOOST_HAS_ABI_HEADERS // This macro gets set if we have headers that fix the ABI, // and prevent ODR violations when linking to external libraries: