#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED #define BOOST_THROW_EXCEPTION_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // boost/throw_exception.hpp // // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // // http://www.boost.org/libs/utility/throw_exception.html // //#include #ifdef BOOST_NO_EXCEPTIONS # include #endif namespace boost { #ifdef BOOST_NO_EXCEPTIONS void throw_exception(std::exception const & e); // user defined #else template void throw_exception(E const & e) { throw e; } #endif } // namespace boost #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED debian-debian A mirror of https://github.com/MagicStack/immutables with Debian packaging in additional branches
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 40368fb..72aaf21 100644
--- a/README.rst
+++ b/README.rst
@@ -21,7 +21,7 @@ essentially O(1) for relatively small mappings.
Below is a visualization of a simple get/set benchmark comparing
HAMT to an immutable mapping implemented with a Python dict
copy-on-write approach (the benchmark code is available
-`here <https://gist.github.com/1st1/9004813d5576c96529527d44c5457dcd>`_):
+`here <https://gist.github.com/1st1/292e3f0bbe43bd65ff3256f80aa2637d>`_):
.. image:: bench.png
@@ -40,7 +40,7 @@ immutables.Map
The ``Map`` object implements ``collections.abc.Mapping`` ABC
so working with it is very similar to working with Python dicts.
-The only exception is its ``Map.set()`` and ``Map.delete()`` methods
+The only exception are its ``Map.set()`` and ``Map.delete()`` methods
which return a new instance of ``Map``:
.. code-block:: python