Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-08-05 06:42:41


Author: johnmaddock
Date: 2008-08-05 06:42:40 EDT (Tue, 05 Aug 2008)
New Revision: 47989
URL: http://svn.boost.org/trac/boost/changeset/47989

Log:
Added support for the unordered containers.
Added:
   trunk/boost/tr1/tr1/unordered_map (contents, props changed)
   trunk/boost/tr1/tr1/unordered_set (contents, props changed)
   trunk/boost/tr1/unordered_map.hpp (contents, props changed)
   trunk/boost/tr1/unordered_set.hpp (contents, props changed)

Added: trunk/boost/tr1/tr1/unordered_map
==============================================================================
--- (empty file)
+++ trunk/boost/tr1/tr1/unordered_map 2008-08-05 06:42:40 EDT (Tue, 05 Aug 2008)
@@ -0,0 +1,22 @@
+// (C) Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+
+#ifndef BOOST_TR1_UNORDERED_MAP_INCLUDED
+# define BOOST_TR1_UNORDERED_MAP_INCLUDED
+# define BOOST_TR1_NO_RECURSION
+# include <boost/tr1/detail/config_all.hpp>
+# ifdef BOOST_HAS_TR1_UNORDERED_MAP
+# ifdef BOOST_HAS_INCLUDE_NEXT
+# include_next BOOST_TR1_HEADER(unordered_map)
+# else
+# include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(unordered_map))
+# endif
+# else
+# include <boost/tr1/unordered_map.hpp>
+# endif
+# undef BOOST_TR1_NO_RECURSION
+#endif
+

Added: trunk/boost/tr1/tr1/unordered_set
==============================================================================
--- (empty file)
+++ trunk/boost/tr1/tr1/unordered_set 2008-08-05 06:42:40 EDT (Tue, 05 Aug 2008)
@@ -0,0 +1,22 @@
+// (C) Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+
+#ifndef BOOST_TR1_UNORDERED_SET_INCLUDED
+# define BOOST_TR1_UNORDERED_SET_INCLUDED
+# define BOOST_TR1_NO_RECURSION
+# include <boost/tr1/detail/config_all.hpp>
+# ifdef BOOST_HAS_TR1_UNORDERED_SET
+# ifdef BOOST_HAS_INCLUDE_NEXT
+# include_next BOOST_TR1_HEADER(unordered_set)
+# else
+# include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(unordered_set))
+# endif
+# else
+# include <boost/tr1/unordered_set.hpp>
+# endif
+# undef BOOST_TR1_NO_RECURSION
+#endif
+

Added: trunk/boost/tr1/unordered_map.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/tr1/unordered_map.hpp 2008-08-05 06:42:40 EDT (Tue, 05 Aug 2008)
@@ -0,0 +1,28 @@
+// (C) Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_TR1_UNORDERED_MAP_HPP_INCLUDED
+# define BOOST_TR1_UNORDERED_MAP_HPP_INCLUDED
+# include <boost/tr1/detail/config.hpp>
+
+#ifdef BOOST_HAS_TR1_UNORDERED_MAP
+
+# include BOOST_TR1_HEADER(unordered_map)
+
+#else
+
+#include <boost/unordered_map.hpp>
+
+namespace std{ namespace tr1{
+
+ using ::boost::unordered_map;
+ using ::boost::unordered_multimap;
+ using ::boost::swap;
+
+} } // namespaces
+
+#endif
+
+#endif

Added: trunk/boost/tr1/unordered_set.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/tr1/unordered_set.hpp 2008-08-05 06:42:40 EDT (Tue, 05 Aug 2008)
@@ -0,0 +1,28 @@
+// (C) Copyright John Maddock 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_TR1_UNORDERED_SET_HPP_INCLUDED
+# define BOOST_TR1_UNORDERED_SET_HPP_INCLUDED
+# include <boost/tr1/detail/config.hpp>
+
+#ifdef BOOST_HAS_TR1_UNORDERED_SET
+
+# include BOOST_TR1_HEADER(unordered_set)
+
+#else
+
+#include <boost/unordered_set.hpp>
+
+namespace std{ namespace tr1{
+
+ using ::boost::unordered_set;
+ using ::boost::unordered_multiset;
+ using ::boost::swap;
+
+} } // namespaces
+
+#endif
+
+#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk