forked from boostorg/range
change the return type from the indexed adaptor so that the index is available from the range element.
This commit is contained in:
31
include/boost/range/traversal.hpp
Normal file
31
include/boost/range/traversal.hpp
Normal 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
|
Reference in New Issue
Block a user