Sha256: fa0b2c96d60fe30ff66de620c3a1727afdda65d5414f367d787024820e5aa62e

Contents?: true

Size: 1.52 KB

Versions: 58

Compression:

Stored size: 1.52 KB

Contents

// (C) Copyright David Abrahams 2002.
// (C) Copyright Jeremy Siek    2002.
// (C) Copyright Thomas Witt    2002.
// 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)
#ifndef BOOST_INTEROPERABLE_23022003THW_HPP
# define BOOST_INTEROPERABLE_23022003THW_HPP

# include <boost/mpl/bool.hpp>
# include <boost/mpl/or.hpp>

# include <boost/type_traits/is_convertible.hpp>

# include <boost/iterator/detail/config_def.hpp> // must appear last

namespace boost {
namespace iterators {

  //
  // Meta function that determines whether two
  // iterator types are considered interoperable.
  //
  // Two iterator types A,B are considered interoperable if either
  // A is convertible to B or vice versa.
  // This interoperability definition is in sync with the
  // standards requirements on constant/mutable container
  // iterators (23.1 [lib.container.requirements]).
  //
  // For compilers that don't support is_convertible
  // is_interoperable gives false positives. See comments
  // on operator implementation for consequences.
  //
  template <typename A, typename B>
  struct is_interoperable
# ifdef BOOST_NO_STRICT_ITERATOR_INTEROPERABILITY
    : mpl::true_
# else
    : mpl::or_<
          is_convertible< A, B >
        , is_convertible< B, A > >
# endif
  {
  };

} // namespace iterators

using iterators::is_interoperable;

} // namespace boost

# include <boost/iterator/detail/config_undef.hpp>

#endif // BOOST_INTEROPERABLE_23022003THW_HPP

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
passenger-6.0.26 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.25 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/iterator/interoperable.hpp