~ubuntu-branches/ubuntu/wily/deal.ii/wily-proposed

« back to all changes in this revision

Viewing changes to contrib/boost/include/boost/fusion/container/deque/detail/end_impl.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV, Adam C. Powell, IV, Denis Barbier
  • Date: 2010-07-29 13:47:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100729134701-qk60t2om7u7oklkb
Tags: 6.3.1-1
[ Adam C. Powell, IV ]
* Changed to source format 3.0 (quilt).
* Changed maintainer to debian-science with Adam Powell as uploader.
* Added source lintian overrides about Adam Powell's name.
* Added Vcs info on git repository.
* Bumped Standards-Version.
* Changed stamp-patch to patch target and fixed its application criterion.
* Moved make_dependencies and expand_instantiations to a versioned directory
  to avoid shlib package conflicts.

[ Denis Barbier ]
* New upstream release (closes: #562332).
  + Added libtbb support.
  + Forward-ported all patches.
* Updates for new PETSc version, including workaround for different versions
  of petsc and slepc.
* Add debian/watch.
* Update to debhelper 7.
* Added pdebuild patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*=============================================================================
 
2
    Copyright (c) 2001-2006 Joel de Guzman
 
3
    Copyright (c) 2005-2006 Dan Marsden
 
4
 
 
5
    Distributed under the Boost Software License, Version 1.0. (See accompanying 
 
6
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
7
==============================================================================*/
 
8
#if !defined(BOOST_FUSION_DEQUE_END_IMPL_09122006_2034)
 
9
#define BOOST_FUSION_DEQUE_END_IMPL_09122006_2034
 
10
 
 
11
#include <boost/fusion/container/deque/deque_iterator.hpp>
 
12
 
 
13
#include <boost/mpl/equal_to.hpp>
 
14
#include <boost/mpl/if.hpp>
 
15
 
 
16
namespace boost { namespace fusion { 
 
17
 
 
18
    struct deque_tag;
 
19
 
 
20
    namespace extension 
 
21
    {
 
22
        template<typename T>
 
23
        struct end_impl;
 
24
        
 
25
        template<>
 
26
        struct end_impl<deque_tag>
 
27
        {
 
28
            template<typename Sequence>
 
29
            struct apply
 
30
            {
 
31
                typedef typename mpl::if_<
 
32
                    mpl::equal_to<typename Sequence::next_down, typename Sequence::next_up>,
 
33
                    deque_iterator<Sequence, 0>,
 
34
                    deque_iterator<
 
35
                    Sequence, Sequence::next_up::value> >::type type;
 
36
                
 
37
                static type call(Sequence& seq)
 
38
                {
 
39
                    return type(seq);
 
40
                }
 
41
            };
 
42
        };
 
43
    }
 
44
}}
 
45
 
 
46
#endif