forked from boostorg/fusion
prelude to iterator_facade and sequence_facade
[SVN r35316]
This commit is contained in:
@ -1,33 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
Copyright (c) 2006 Dan Marsden
|
||||
|
||||
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)
|
||||
==============================================================================*/
|
||||
#if !defined(BOOST_FUSION_IS_ASSOCIATIVE_IMPL_20060304_2219)
|
||||
#define BOOST_FUSION_IS_ASSOCIATIVE_IMPL_20060304_2219
|
||||
|
||||
#include <boost/mpl/bool.hpp>
|
||||
|
||||
namespace boost { namespace fusion {
|
||||
|
||||
struct set_tag;
|
||||
|
||||
namespace extension {
|
||||
template<typename Tag>
|
||||
struct is_associative_impl;
|
||||
|
||||
template<>
|
||||
struct is_associative_impl<fusion::set_tag>
|
||||
{
|
||||
template<typename Seq>
|
||||
struct apply
|
||||
: mpl::true_
|
||||
{};
|
||||
};
|
||||
}
|
||||
}}
|
||||
|
||||
#endif
|
@ -9,6 +9,7 @@
|
||||
#define FUSION_SET_09162005_1104
|
||||
|
||||
#include <boost/fusion/support/sequence_base.hpp>
|
||||
#include <boost/fusion/support/category_of.hpp>
|
||||
#include <boost/fusion/support/detail/access.hpp>
|
||||
#include <boost/fusion/sequence/container/set/set_fwd.hpp>
|
||||
#include <boost/fusion/sequence/container/set/detail/lookup_key.hpp>
|
||||
@ -16,7 +17,6 @@
|
||||
#include <boost/fusion/sequence/container/set/detail/end_impl.hpp>
|
||||
#include <boost/fusion/sequence/container/set/detail/at_key_impl.hpp>
|
||||
#include <boost/fusion/sequence/container/set/detail/value_at_key_impl.hpp>
|
||||
#include <boost/fusion/sequence/container/set/detail/is_associative_impl.hpp>
|
||||
#include <boost/fusion/sequence/container/vector/vector.hpp>
|
||||
#include <boost/mpl/identity.hpp>
|
||||
#include <boost/mpl/bool.hpp>
|
||||
@ -25,15 +25,15 @@ namespace boost { namespace fusion
|
||||
{
|
||||
struct void_;
|
||||
struct set_tag;
|
||||
struct forward_sequence_tag;
|
||||
struct fusion_sequence_tag;
|
||||
|
||||
template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_SET_SIZE, typename T)>
|
||||
struct set : sequence_base<set<BOOST_PP_ENUM_PARAMS(FUSION_MAX_SET_SIZE, T)> >
|
||||
{
|
||||
struct category : forward_traversal_tag, associative_sequence_tag {};
|
||||
|
||||
typedef set_tag fusion_tag;
|
||||
typedef fusion_sequence_tag tag; // this gets picked up by MPL
|
||||
typedef forward_sequence_tag category;
|
||||
typedef mpl::false_ is_view;
|
||||
|
||||
typedef vector<
|
||||
|
Reference in New Issue
Block a user