Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86427 - in branches/release: . boost boost/proto boost/proto/detail
From: eric_at_[hidden]
Date: 2013-10-25 12:35:09


Author: eric_niebler
Date: 2013-10-25 12:35:09 EDT (Fri, 25 Oct 2013)
New Revision: 86427
URL: http://svn.boost.org/trac/boost/changeset/86427

Log:
merge [86344] from trunk

Deleted:
   branches/release/boost/proto/detail/pop_front.hpp
   branches/release/boost/proto/detail/reverse.hpp
Properties modified:
   branches/release/ (props changed)
   branches/release/boost/ (props changed)
   branches/release/boost/proto/ (props changed)
Text files modified:
   /dev/null | 43 ---------
   /dev/null | 189 ----------------------------------------
   2 files changed, 0 insertions(+), 232 deletions(-)

Deleted: branches/release/boost/proto/detail/pop_front.hpp
==============================================================================
--- branches/release/boost/proto/detail/pop_front.hpp 2013-10-25 12:35:09 EDT (Fri, 25 Oct 2013) (r86426)
+++ /dev/null 00:00:00 1970 (deleted)
@@ -1,43 +0,0 @@
-/*=============================================================================
- Copyright (c) 2001-2006 Joel de Guzman
- Copyright (c) 2008 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)
-==============================================================================*/
-#ifndef BOOST_PROTO_DETAIL_FUSION_POP_FRONT_EAH_01_22_2008
-#define BOOST_PROTO_DETAIL_FUSION_POP_FRONT_EAH_01_22_2008
-
-#include <boost/spirit/fusion/sequence/range.hpp>
-#include <boost/spirit/fusion/sequence/begin.hpp>
-#include <boost/spirit/fusion/sequence/end.hpp>
-#include <boost/spirit/fusion/iterator/next.hpp>
-
-namespace boost { namespace fusion
-{
- namespace meta
- {
- template <typename Sequence>
- struct pop_front
- {
- typedef
- range<
- typename next<
- typename begin<Sequence>::type
- >::type
- , typename end<Sequence>::type
- >
- type;
- };
- }
-
- template <typename Sequence>
- inline typename meta::pop_front<Sequence const>::type
- pop_front(Sequence const& seq)
- {
- typedef typename meta::pop_front<Sequence const>::type result;
- return result(fusion::next(fusion::begin(seq)), fusion::end(seq));
- }
-}}
-
-#endif

Deleted: branches/release/boost/proto/detail/reverse.hpp
==============================================================================
--- branches/release/boost/proto/detail/reverse.hpp 2013-10-25 12:35:09 EDT (Fri, 25 Oct 2013) (r86426)
+++ /dev/null 00:00:00 1970 (deleted)
@@ -1,189 +0,0 @@
-/*=============================================================================
- Copyright (c) 2001-2006 Joel de Guzman
- Copyright (c) 2008 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)
-==============================================================================*/
-#ifndef BOOST_PROTO_DETAIL_FUSION_REVERSE_EAH_01_22_2008
-#define BOOST_PROTO_DETAIL_FUSION_REVERSE_EAH_01_22_2008
-
-#include <boost/spirit/fusion/detail/access.hpp>
-#include <boost/spirit/fusion/iterator/as_fusion_iterator.hpp>
-#include <boost/spirit/fusion/iterator/detail/iterator_base.hpp>
-#include <boost/spirit/fusion/sequence/detail/sequence_base.hpp>
-#include <boost/spirit/fusion/iterator/next.hpp>
-#include <boost/spirit/fusion/iterator/prior.hpp>
-#include <boost/spirit/fusion/iterator/deref.hpp>
-#include <boost/spirit/fusion/iterator/value_of.hpp>
-#include <boost/spirit/fusion/sequence/begin.hpp>
-#include <boost/spirit/fusion/sequence/end.hpp>
-
-namespace boost { namespace fusion
-{
- struct reverse_view_tag;
- struct reverse_view_iterator_tag;
-
- template <typename First>
- struct reverse_view_iterator
- : iterator_base<reverse_view_iterator<First> >
- {
- typedef as_fusion_iterator<First> converter;
- typedef typename converter::type first_type;
- typedef reverse_view_iterator_tag tag;
-
- reverse_view_iterator(First const& first)
- : first(converter::convert(first)) {}
-
- first_type first;
- };
-
- template <typename Sequence>
- struct reverse_view : sequence_base<reverse_view<Sequence> >
- {
- typedef as_fusion_sequence<Sequence> seq_converter;
- typedef typename seq_converter::type seq;
-
- typedef reverse_view_tag tag;
- typedef typename meta::begin<seq>::type first_type;
- typedef typename meta::end<seq>::type last_type;
-
- reverse_view(Sequence& seq)
- : first(fusion::begin(seq))
- , last(fusion::end(seq))
- {}
-
- first_type first;
- last_type last;
- };
-
- namespace meta
- {
- template <>
- struct deref_impl<reverse_view_iterator_tag>
- {
- template <typename Iterator>
- struct apply
- {
- typedef typename
- meta::deref<
- typename meta::prior<
- typename Iterator::first_type
- >::type
- >::type
- type;
-
- static type
- call(Iterator const& i)
- {
- return *fusion::prior(i.first);
- }
- };
- };
-
- template <>
- struct prior_impl<reverse_view_iterator_tag>
- {
- template <typename Iterator>
- struct apply
- {
- typedef typename Iterator::first_type first_type;
- typedef typename next_impl<typename first_type::tag>::
- template apply<first_type>
- wrapped;
-
- typedef reverse_view_iterator<typename wrapped::type> type;
-
- static type
- call(Iterator const& i)
- {
- return type(wrapped::call(i.first));
- }
- };
- };
-
- template <>
- struct next_impl<reverse_view_iterator_tag>
- {
- template <typename Iterator>
- struct apply
- {
- typedef typename Iterator::first_type first_type;
- typedef typename prior_impl<typename first_type::tag>::
- template apply<first_type>
- wrapped;
-
- typedef reverse_view_iterator<typename wrapped::type> type;
-
- static type
- call(Iterator const& i)
- {
- return type(wrapped::call(i.first));
- }
- };
- };
-
- template <>
- struct value_impl<reverse_view_iterator_tag>
- {
- template <typename Iterator>
- struct apply
- {
- typedef typename
- meta::value_of<
- typename meta::prior<
- typename Iterator::first_type
- >::type
- >::type
- type;
- };
- };
-
- template <>
- struct begin_impl<reverse_view_tag>
- {
- template <typename Sequence>
- struct apply
- {
- typedef reverse_view_iterator<typename Sequence::last_type> type;
-
- static type
- call(Sequence const& s)
- {
- return type(s.last);
- }
- };
- };
-
- template <>
- struct end_impl<reverse_view_tag>
- {
- template <typename Sequence>
- struct apply
- {
- typedef reverse_view_iterator<typename Sequence::first_type> type;
-
- static type
- call(Sequence const& s)
- {
- return type(s.first);
- }
- };
- };
-
- template <typename Sequence>
- struct reverse
- {
- typedef reverse_view<Sequence> type;
- };
- }
-
- template <typename Sequence>
- inline reverse_view<Sequence const>
- reverse(Sequence const& view)
- {
- return reverse_view<Sequence const>(view);
- }
-}}
-
-#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk