~ubuntu-branches/ubuntu/saucy/deal.ii/saucy

« back to all changes in this revision

Viewing changes to contrib/boost/include/boost/fusion/support/is_view.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: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100729134701-akb8jb3stwge8tcm
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
 
 
4
    Distributed under the Boost Software License, Version 1.0. (See accompanying 
 
5
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
6
==============================================================================*/
 
7
#if !defined(FUSION_IS_VIEW_03202006_0015)
 
8
#define FUSION_IS_VIEW_03202006_0015
 
9
 
 
10
#include <boost/fusion/support/detail/is_view.hpp>
 
11
#include <boost/fusion/support/tag_of.hpp>
 
12
 
 
13
namespace boost { namespace fusion
 
14
{
 
15
    // Special tags:
 
16
    struct sequence_facade_tag;
 
17
    struct boost_tuple_tag; // boost::tuples::tuple tag
 
18
    struct array_tag; // boost::array tag
 
19
    struct mpl_sequence_tag; // mpl sequence tag
 
20
    struct std_pair_tag; // std::pair tag
 
21
 
 
22
    namespace extension
 
23
    {
 
24
        template<typename Tag>
 
25
        struct is_view_impl
 
26
        {
 
27
            template <typename T>
 
28
            struct apply
 
29
                : detail::fusion_is_view<T>
 
30
            {};
 
31
        };
 
32
 
 
33
        template <>
 
34
        struct is_view_impl<sequence_facade_tag>
 
35
        {
 
36
            template <typename Sequence>
 
37
            struct apply : Sequence::is_view {};
 
38
        };
 
39
 
 
40
        template <>
 
41
        struct is_view_impl<boost_tuple_tag>;
 
42
 
 
43
        template <>
 
44
        struct is_view_impl<array_tag>;
 
45
 
 
46
        template <>
 
47
        struct is_view_impl<mpl_sequence_tag>;
 
48
 
 
49
        template <>
 
50
        struct is_view_impl<std_pair_tag>;
 
51
    }
 
52
 
 
53
    namespace traits
 
54
    {
 
55
        template <typename T>
 
56
        struct is_view :
 
57
            extension::is_view_impl<typename fusion::detail::tag_of<T>::type>::
 
58
                template apply<T>::type
 
59
        {};
 
60
    }
 
61
}}
 
62
 
 
63
#endif