forked from boostorg/fusion
make single_view random access
[SVN r72977]
This commit is contained in:
@ -1,18 +1,22 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
Copyright (c) 2011 Eric Niebler
|
||||
|
||||
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)
|
||||
==============================================================================*/
|
||||
#if !defined(FUSION_SINGLE_VIEW_05052005_0335)
|
||||
#define FUSION_SINGLE_VIEW_05052005_0335
|
||||
#if !defined(BOOST_FUSION_SINGLE_VIEW_05052005_0335)
|
||||
#define BOOST_FUSION_SINGLE_VIEW_05052005_0335
|
||||
|
||||
#include <boost/fusion/support/detail/access.hpp>
|
||||
#include <boost/fusion/support/detail/as_fusion_element.hpp>
|
||||
#include <boost/fusion/support/sequence_base.hpp>
|
||||
#include <boost/fusion/view/single_view/single_view_iterator.hpp>
|
||||
#include <boost/fusion/view/single_view/detail/at_impl.hpp>
|
||||
#include <boost/fusion/view/single_view/detail/begin_impl.hpp>
|
||||
#include <boost/fusion/view/single_view/detail/end_impl.hpp>
|
||||
#include <boost/fusion/view/single_view/detail/size_impl.hpp>
|
||||
#include <boost/fusion/view/single_view/detail/value_at_impl.hpp>
|
||||
#include <boost/mpl/bool.hpp>
|
||||
#include <boost/mpl/int.hpp>
|
||||
#include <boost/config.hpp>
|
||||
@ -25,7 +29,7 @@
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
struct single_view_tag;
|
||||
struct forward_traversal_tag;
|
||||
struct random_access_traversal_tag;
|
||||
struct fusion_sequence_tag;
|
||||
|
||||
template <typename T>
|
||||
@ -33,7 +37,7 @@ namespace boost { namespace fusion
|
||||
{
|
||||
typedef single_view_tag fusion_tag;
|
||||
typedef fusion_sequence_tag tag; // this gets picked up by MPL
|
||||
typedef forward_traversal_tag category;
|
||||
typedef random_access_traversal_tag category;
|
||||
typedef mpl::true_ is_view;
|
||||
typedef mpl::int_<1> size;
|
||||
typedef T value_type;
|
||||
|
Reference in New Issue
Block a user