~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/preprocessed/msvc70/or.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// preprocessed version of 'boost/mpl/aux_/config/use_preprocessed.hpp' header
 
2
// see the original for copyright information
 
3
 
 
4
namespace boost { namespace mpl {
 
5
 
 
6
namespace aux {
 
7
 
 
8
template< bool C_ > struct or_impl
 
9
{
 
10
    template<
 
11
          typename T1, typename T2, typename T3, typename T4
 
12
        >
 
13
    struct result_
 
14
        : true_
 
15
    {
 
16
    };
 
17
};
 
18
 
 
19
template<> struct or_impl<false>
 
20
{
 
21
    template<
 
22
          typename T1, typename T2, typename T3, typename T4
 
23
        >
 
24
    struct result_
 
25
        : or_impl< 
 
26
              BOOST_MPL_AUX_NESTED_TYPE_WKND(T1)::value
 
27
            >::template result_< T2,T3,T4,false_ >
 
28
    {
 
29
    };
 
30
 
 
31
    template<> struct result_<false_, false_, false_, false_>
 
32
        : false_
 
33
    {
 
34
    };
 
35
};
 
36
 
 
37
} // namespace aux
 
38
 
 
39
template<
 
40
      typename BOOST_MPL_AUX_VOID_SPEC_PARAM(T1)
 
41
    , typename BOOST_MPL_AUX_VOID_SPEC_PARAM(T2)
 
42
    , typename T3 = false_, typename T4 = false_, typename T5 = false_
 
43
    >
 
44
struct or_
 
45
 
 
46
    : aux::or_impl< 
 
47
          BOOST_MPL_AUX_NESTED_TYPE_WKND(T1)::value
 
48
        >::template result_< T2,T3,T4,T5 >
 
49
 
 
50
{
 
51
    BOOST_MPL_AUX_LAMBDA_SUPPORT(
 
52
          5
 
53
        , or_
 
54
        , (T1, T2, T3, T4, T5)
 
55
        )
 
56
};
 
57
 
 
58
BOOST_MPL_AUX_VOID_SPEC_EXT(
 
59
      2
 
60
    , 5
 
61
    , or_
 
62
    )
 
63
 
 
64
}} // namespace boost::mpl
 
65