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

« back to all changes in this revision

Viewing changes to contrib/boost/include/boost/fusion/adapted/std_pair.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
    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_STD_PAIR_24122005_1744)
 
9
#define BOOST_FUSION_STD_PAIR_24122005_1744
 
10
 
 
11
#include <boost/fusion/support/tag_of_fwd.hpp>
 
12
#include <boost/fusion/adapted/struct.hpp>
 
13
#include <boost/mpl/int.hpp>
 
14
#include <boost/config/no_tr1/utility.hpp>
 
15
 
 
16
namespace boost { namespace fusion
 
17
{
 
18
    struct struct_tag;
 
19
 
 
20
    namespace traits
 
21
    {
 
22
        template <typename T1, typename T2>
 
23
#if defined(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS)
 
24
        struct tag_of<std::pair<T1, T2>, void >
 
25
#else
 
26
        struct tag_of<std::pair<T1, T2> >
 
27
#endif
 
28
        {
 
29
            typedef struct_tag type;
 
30
        };
 
31
    }
 
32
 
 
33
    namespace extension
 
34
    {
 
35
        template <typename Struct, int N>
 
36
        struct struct_member;
 
37
 
 
38
        template <typename Struct>
 
39
        struct struct_size;
 
40
 
 
41
        template <typename T1, typename T2>
 
42
        struct struct_member<std::pair<T1, T2>, 0>
 
43
        {
 
44
            typedef T1 type;
 
45
 
 
46
            static type& call(std::pair<T1, T2>& pair)
 
47
            {
 
48
                return pair.first;
 
49
            }
 
50
        };
 
51
 
 
52
        template <typename T1, typename T2>
 
53
        struct struct_member<std::pair<T1, T2>, 1>
 
54
        {
 
55
            typedef T2 type;
 
56
 
 
57
            static type& call(std::pair<T1, T2>& pair)
 
58
            {
 
59
                return pair.second;
 
60
            }
 
61
        };
 
62
 
 
63
        template <typename T1, typename T2>
 
64
        struct struct_size<std::pair<T1, T2> > : mpl::int_<2>
 
65
        {
 
66
        };
 
67
    }
 
68
}}
 
69
 
 
70
#endif