1
/*=============================================================================
2
Copyright (c) 2001-2006 Joel de Guzman
3
Copyright (c) 2005-2006 Dan Marsden
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
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>
16
namespace boost { namespace fusion
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 >
26
struct tag_of<std::pair<T1, T2> >
29
typedef struct_tag type;
35
template <typename Struct, int N>
38
template <typename Struct>
41
template <typename T1, typename T2>
42
struct struct_member<std::pair<T1, T2>, 0>
46
static type& call(std::pair<T1, T2>& pair)
52
template <typename T1, typename T2>
53
struct struct_member<std::pair<T1, T2>, 1>
57
static type& call(std::pair<T1, T2>& pair)
63
template <typename T1, typename T2>
64
struct struct_size<std::pair<T1, T2> > : mpl::int_<2>