forked from boostorg/fusion
phase3: refactoring for v2.1
[SVN r40211]
This commit is contained in:
@ -1,28 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_SEQUENCE_INTRINSIC_MPL_10022005_1641)
|
||||
#define FUSION_SEQUENCE_INTRINSIC_MPL_10022005_1641
|
||||
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/at.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/begin.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/clear.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/empty.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/end.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/erase.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/erase_key.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/has_key.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/insert.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/insert_range.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/pop_back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/pop_front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/push_back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/push_front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/size.hpp>
|
||||
|
||||
#endif
|
@ -1,33 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_AT_10022005_1616)
|
||||
#define FUSION_AT_10022005_1616
|
||||
|
||||
#include <boost/mpl/at.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/value_at.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace fusion
|
||||
{
|
||||
struct fusion_sequence_tag;
|
||||
}
|
||||
|
||||
namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct at_impl;
|
||||
|
||||
template <>
|
||||
struct at_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename N>
|
||||
struct apply : fusion::result_of::value_at<Sequence, N> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,32 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_BACK_10022005_1620)
|
||||
#define FUSION_BACK_10022005_1620
|
||||
|
||||
#include <boost/mpl/back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/end.hpp>
|
||||
#include <boost/fusion/iterator/prior.hpp>
|
||||
#include <boost/fusion/iterator/value_of.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct back_impl;
|
||||
|
||||
template <>
|
||||
struct back_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply :
|
||||
fusion::result_of::value_of<
|
||||
typename fusion::result_of::prior<
|
||||
typename fusion::result_of::end<Sequence>::type
|
||||
>::type> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,31 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_BEGIN_10022005_1620)
|
||||
#define FUSION_BEGIN_10022005_1620
|
||||
|
||||
#include <boost/mpl/begin_end.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/begin.hpp>
|
||||
#include <boost/fusion/sequence/adapted/mpl/detail/begin_impl.hpp>
|
||||
#include <boost/fusion/iterator/mpl/fusion_iterator.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct begin_impl;
|
||||
|
||||
template <>
|
||||
struct begin_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply
|
||||
{
|
||||
typedef fusion_iterator<typename fusion::result_of::begin<Sequence>::type> type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,33 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_CLEAR_10022005_1817)
|
||||
#define FUSION_CLEAR_10022005_1817
|
||||
|
||||
#include <boost/mpl/clear.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/clear.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct clear_impl;
|
||||
|
||||
template <>
|
||||
struct clear_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::detail::clear<typename fusion::detail::tag_of<Sequence>::type>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,80 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_AS_10022005_1442)
|
||||
#define FUSION_AS_10022005_1442
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
namespace result_of
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct as_list;
|
||||
|
||||
template <typename Sequence>
|
||||
struct as_map;
|
||||
|
||||
template <typename Sequence>
|
||||
struct as_set;
|
||||
|
||||
template <typename Sequence>
|
||||
struct as_vector;
|
||||
|
||||
template <typename Sequence>
|
||||
struct as_deque;
|
||||
}
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template <typename Tag>
|
||||
struct as_impl;
|
||||
|
||||
template <>
|
||||
struct as_impl<cons_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : result_of::as_list<Sequence> {};
|
||||
};
|
||||
|
||||
template <>
|
||||
struct as_impl<map_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : result_of::as_map<Sequence> {};
|
||||
};
|
||||
|
||||
template <>
|
||||
struct as_impl<set_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : result_of::as_set<Sequence> {};
|
||||
};
|
||||
|
||||
template <>
|
||||
struct as_impl<vector_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : result_of::as_vector<Sequence> {};
|
||||
};
|
||||
|
||||
template<>
|
||||
struct as_impl<deque_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : result_of::as_deque<Sequence> {};
|
||||
};
|
||||
|
||||
template <typename Tag, typename Sequence>
|
||||
struct as
|
||||
{
|
||||
typedef typename
|
||||
as_impl<Tag>::template apply<Sequence>::type
|
||||
type;
|
||||
};
|
||||
}
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,46 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_CLEAR_10022005_1442)
|
||||
#define FUSION_CLEAR_10022005_1442
|
||||
|
||||
#include <boost/fusion/container/vector/vector_fwd.hpp>
|
||||
#include <boost/fusion/container/list/list_fwd.hpp>
|
||||
#include <boost/fusion/container/map/map_fwd.hpp>
|
||||
#include <boost/fusion/container/set/set_fwd.hpp>
|
||||
#include <boost/fusion/container/deque/deque_fwd.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
struct cons_tag;
|
||||
struct map_tag;
|
||||
struct set_tag;
|
||||
struct vector_tag;
|
||||
struct deque_tag;
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template <typename Tag>
|
||||
struct clear;
|
||||
|
||||
template <>
|
||||
struct clear<cons_tag> : mpl::identity<list<> > {};
|
||||
|
||||
template <>
|
||||
struct clear<map_tag> : mpl::identity<map<> > {};
|
||||
|
||||
template <>
|
||||
struct clear<set_tag> : mpl::identity<set<> > {};
|
||||
|
||||
template <>
|
||||
struct clear<vector_tag> : mpl::identity<vector<> > {};
|
||||
|
||||
template <>
|
||||
struct clear<deque_tag> : mpl::identity<deque<> > {};
|
||||
}
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,26 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_EMPTY_10022005_1619)
|
||||
#define FUSION_EMPTY_10022005_1619
|
||||
|
||||
#include <boost/mpl/empty.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct empty_impl;
|
||||
|
||||
template <>
|
||||
struct empty_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : fusion::result_of::empty<Sequence> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,31 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_END_10022005_1619)
|
||||
#define FUSION_END_10022005_1619
|
||||
|
||||
#include <boost/mpl/begin_end.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/end.hpp>
|
||||
#include <boost/fusion/sequence/adapted/mpl/detail/end_impl.hpp>
|
||||
#include <boost/fusion/iterator/mpl/fusion_iterator.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct end_impl;
|
||||
|
||||
template <>
|
||||
struct end_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply
|
||||
{
|
||||
typedef fusion_iterator<typename fusion::result_of::end<Sequence>::type> type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_ERASE_10022005_1835)
|
||||
#define FUSION_ERASE_10022005_1835
|
||||
|
||||
#include <boost/mpl/erase.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/erase.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct erase_impl;
|
||||
|
||||
template <>
|
||||
struct erase_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename First, typename Last>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::erase<Sequence, First, Last>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_ERASE_KEY_10022005_1907)
|
||||
#define FUSION_ERASE_KEY_10022005_1907
|
||||
|
||||
#include <boost/mpl/erase_key.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/erase_key.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct erase_key_impl;
|
||||
|
||||
template <>
|
||||
struct erase_key_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename Key>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::erase_key<Sequence, Key>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,28 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_FRONT_10022005_1618)
|
||||
#define FUSION_FRONT_10022005_1618
|
||||
|
||||
#include <boost/mpl/front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/begin.hpp>
|
||||
#include <boost/fusion/iterator/value_of.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct front_impl;
|
||||
|
||||
template <>
|
||||
struct front_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply :
|
||||
fusion::result_of::value_of<typename fusion::result_of::begin<Sequence>::type> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
@ -1,27 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_HAS_KEY_10022005_1617)
|
||||
#define FUSION_HAS_KEY_10022005_1617
|
||||
|
||||
#include <boost/mpl/has_key.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/has_key.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct has_key_impl;
|
||||
|
||||
template <>
|
||||
struct has_key_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename Key>
|
||||
struct apply : fusion::result_of::has_key<Sequence, Key> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_INSERT_10022005_1837)
|
||||
#define FUSION_INSERT_10022005_1837
|
||||
|
||||
#include <boost/mpl/insert.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/insert.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct insert_impl;
|
||||
|
||||
template <>
|
||||
struct insert_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename Pos, typename T>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::insert<Sequence, Pos, T>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_INSERT_RANGE_10022005_1838)
|
||||
#define FUSION_INSERT_RANGE_10022005_1838
|
||||
|
||||
#include <boost/mpl/insert_range.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/insert_range.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct insert_range_impl;
|
||||
|
||||
template <>
|
||||
struct insert_range_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename Pos, typename Range>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::insert_range<Sequence, Pos, Range>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_POP_BACK_10022005_1801)
|
||||
#define FUSION_POP_BACK_10022005_1801
|
||||
|
||||
#include <boost/mpl/pop_back.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/pop_back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct pop_back_impl;
|
||||
|
||||
template <>
|
||||
struct pop_back_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::pop_back<Sequence>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_POP_FRONT_10022005_1800)
|
||||
#define FUSION_POP_FRONT_10022005_1800
|
||||
|
||||
#include <boost/mpl/pop_front.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/pop_front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct pop_front_impl;
|
||||
|
||||
template <>
|
||||
struct pop_front_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::pop_front<Sequence>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_PUSH_BACK_10022005_1647)
|
||||
#define FUSION_PUSH_BACK_10022005_1647
|
||||
|
||||
#include <boost/mpl/push_back.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/push_back.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct push_back_impl;
|
||||
|
||||
template <>
|
||||
struct push_back_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename T>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::push_back<Sequence, T>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,38 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_PUSH_FRONT_10022005_1720)
|
||||
#define FUSION_PUSH_FRONT_10022005_1720
|
||||
|
||||
#include <boost/mpl/push_front.hpp>
|
||||
#include <boost/fusion/support/tag_of.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/push_front.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl/detail/as.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct push_front_impl;
|
||||
|
||||
template <>
|
||||
struct push_front_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence, typename T>
|
||||
struct apply
|
||||
{
|
||||
typedef typename
|
||||
fusion::result_of::push_front<Sequence, T>::type
|
||||
result;
|
||||
|
||||
typedef typename
|
||||
fusion::detail::as<typename fusion::detail::tag_of<Sequence>::type, result>::type
|
||||
type;
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -1,26 +0,0 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_SIZE_10022005_1617)
|
||||
#define FUSION_SIZE_10022005_1617
|
||||
|
||||
#include <boost/mpl/size.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
||||
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
template <typename Tag>
|
||||
struct size_impl;
|
||||
|
||||
template <>
|
||||
struct size_impl<fusion::fusion_sequence_tag>
|
||||
{
|
||||
template <typename Sequence>
|
||||
struct apply : fusion::result_of::size<Sequence> {};
|
||||
};
|
||||
}}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user