change the return type from the indexed adaptor so that the index is available from the range element.

This commit is contained in:
Neil Groves
2014-06-09 02:12:00 +01:00
parent 344f578934
commit 5ce6dc7814
5 changed files with 545 additions and 223 deletions

View File

@ -0,0 +1,31 @@
// Boost.Range library
//
// Copyright Neil Groves 2014. Use, modification and
// distribution is 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)
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_TRAVERSAL_HPP
#define BOOST_RANGE_TRAVERSAL_HPP
#if defined(_MSC_VER)
# pragma once
#endif
#include <boost/range/config.hpp>
#include <boost/range/iterator.hpp>
#include <boost/iterator/iterator_traits.hpp>
namespace boost
{
template<typename SinglePassRange>
struct range_traversal
: iterator_traversal<typename range_iterator<SinglePassRange>::type>
{
};
}
#endif