diff options
Diffstat (limited to 'boost/container/container_fwd.hpp')
-rw-r--r-- | boost/container/container_fwd.hpp | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/boost/container/container_fwd.hpp b/boost/container/container_fwd.hpp index da325e4461..c52b04a1c9 100644 --- a/boost/container/container_fwd.hpp +++ b/boost/container/container_fwd.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under 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) // @@ -21,8 +21,8 @@ /// @cond -namespace boost{ -namespace intrusive{ +namespace boost{ +namespace intrusive{ //Create namespace to avoid compilation errors }} @@ -32,9 +32,9 @@ namespace bi = boost::intrusive; }}} -#include <utility> -#include <memory> -#include <functional> +#include <utility> +#include <memory> +#include <functional> #include <iosfwd> #include <string> @@ -127,31 +127,27 @@ class flat_multimap; //basic_string class template <class CharT ,class Traits = std::char_traits<CharT> - ,class A = std::allocator<CharT> > + ,class A = std::allocator<CharT> > class basic_string; //! Type used to tag that the input range is //! guaranteed to be ordered -struct ordered_range_impl_t {}; +struct ordered_range_t +{}; //! Type used to tag that the input range is //! guaranteed to be ordered and unique -struct ordered_unique_range_impl_t{}; - -/// @cond - -typedef ordered_range_impl_t * ordered_range_t; -typedef ordered_unique_range_impl_t *ordered_unique_range_t; - -/// @endcond +struct ordered_unique_range_t + : public ordered_range_t +{}; //! Value used to tag that the input range is //! guaranteed to be ordered -static const ordered_range_t ordered_range = 0; +static const ordered_range_t ordered_range = ordered_range_t(); //! Value used to tag that the input range is //! guaranteed to be ordered and unique -static const ordered_unique_range_t ordered_unique_range = 0; +static const ordered_unique_range_t ordered_unique_range = ordered_unique_range_t(); /// @cond |