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

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/preprocessed/no_ctps/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
};
 
32
 
 
33
template<>
 
34
struct or_impl<false>
 
35
    ::result_< false_,false_,false_,false_ >
 
36
        : false_
 
37
{
 
38
};
 
39
 
 
40
} // namespace aux
 
41
 
 
42
template<
 
43
      typename BOOST_MPL_AUX_VOID_SPEC_PARAM(T1)
 
44
    , typename BOOST_MPL_AUX_VOID_SPEC_PARAM(T2)
 
45
    , typename T3 = false_, typename T4 = false_, typename T5 = false_
 
46
    >
 
47
struct or_
 
48
 
 
49
    : aux::or_impl< 
 
50
          BOOST_MPL_AUX_NESTED_TYPE_WKND(T1)::value
 
51
        >::template result_< T2,T3,T4,T5 >
 
52
 
 
53
{
 
54
    BOOST_MPL_AUX_LAMBDA_SUPPORT(
 
55
          5
 
56
        , or_
 
57
        , (T1, T2, T3, T4, T5)
 
58
        )
 
59
};
 
60
 
 
61
BOOST_MPL_AUX_VOID_SPEC_EXT(
 
62
      2
 
63
    , 5
 
64
    , or_
 
65
    )
 
66
 
 
67
}} // namespace boost::mpl
 
68