Chris@16
|
1
|
Chris@16
|
2 // Copyright Aleksey Gurtovoy 2000-2004
|
Chris@16
|
3 //
|
Chris@16
|
4 // Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
5 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
6 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
7 //
|
Chris@16
|
8
|
Chris@16
|
9 // Preprocessed version of "boost/mpl/less.hpp" header
|
Chris@16
|
10 // -- DO NOT modify by hand!
|
Chris@16
|
11
|
Chris@16
|
12 namespace boost { namespace mpl {
|
Chris@16
|
13
|
Chris@16
|
14 template<
|
Chris@16
|
15 typename Tag1
|
Chris@16
|
16 , typename Tag2
|
Chris@16
|
17
|
Chris@16
|
18 , BOOST_MPL_AUX_NTTP_DECL(int, tag1_) = BOOST_MPL_AUX_MSVC_VALUE_WKND(Tag1)::value
|
Chris@16
|
19 , BOOST_MPL_AUX_NTTP_DECL(int, tag2_) = BOOST_MPL_AUX_MSVC_VALUE_WKND(Tag2)::value
|
Chris@16
|
20 >
|
Chris@16
|
21 struct less_impl
|
Chris@16
|
22 : if_c<
|
Chris@16
|
23 ( tag1_ > tag2_ )
|
Chris@16
|
24 , aux::cast2nd_impl< less_impl< Tag1,Tag1 >,Tag1, Tag2 >
|
Chris@16
|
25 , aux::cast1st_impl< less_impl< Tag2,Tag2 >,Tag1, Tag2 >
|
Chris@16
|
26 >::type
|
Chris@16
|
27 {
|
Chris@16
|
28 };
|
Chris@16
|
29
|
Chris@16
|
30 /// for Digital Mars C++/compilers with no CTPS/TTP support
|
Chris@16
|
31 template<> struct less_impl< na,na >
|
Chris@16
|
32 {
|
Chris@16
|
33 template< typename U1, typename U2 > struct apply
|
Chris@16
|
34 {
|
Chris@16
|
35 typedef apply type;
|
Chris@16
|
36 BOOST_STATIC_CONSTANT(int, value = 0);
|
Chris@16
|
37 };
|
Chris@16
|
38 };
|
Chris@16
|
39
|
Chris@16
|
40 template<> struct less_impl< na,integral_c_tag >
|
Chris@16
|
41 {
|
Chris@16
|
42 template< typename U1, typename U2 > struct apply
|
Chris@16
|
43 {
|
Chris@16
|
44 typedef apply type;
|
Chris@16
|
45 BOOST_STATIC_CONSTANT(int, value = 0);
|
Chris@16
|
46 };
|
Chris@16
|
47 };
|
Chris@16
|
48
|
Chris@16
|
49 template<> struct less_impl< integral_c_tag,na >
|
Chris@16
|
50 {
|
Chris@16
|
51 template< typename U1, typename U2 > struct apply
|
Chris@16
|
52 {
|
Chris@16
|
53 typedef apply type;
|
Chris@16
|
54 BOOST_STATIC_CONSTANT(int, value = 0);
|
Chris@16
|
55 };
|
Chris@16
|
56 };
|
Chris@16
|
57
|
Chris@16
|
58 template< typename T > struct less_tag
|
Chris@16
|
59 {
|
Chris@16
|
60 typedef typename T::tag type;
|
Chris@16
|
61 };
|
Chris@16
|
62
|
Chris@16
|
63 template<
|
Chris@16
|
64 typename BOOST_MPL_AUX_NA_PARAM(N1)
|
Chris@16
|
65 , typename BOOST_MPL_AUX_NA_PARAM(N2)
|
Chris@16
|
66 >
|
Chris@16
|
67 struct less
|
Chris@16
|
68 : aux::msvc_eti_base< typename apply_wrap2<
|
Chris@16
|
69 less_impl<
|
Chris@16
|
70 typename less_tag<N1>::type
|
Chris@16
|
71 , typename less_tag<N2>::type
|
Chris@16
|
72 >
|
Chris@16
|
73 , N1
|
Chris@16
|
74 , N2
|
Chris@16
|
75 >::type >::type
|
Chris@16
|
76
|
Chris@16
|
77 {
|
Chris@16
|
78 BOOST_MPL_AUX_LAMBDA_SUPPORT(2, less, (N1, N2))
|
Chris@16
|
79
|
Chris@16
|
80 };
|
Chris@16
|
81
|
Chris@16
|
82 BOOST_MPL_AUX_NA_SPEC2(2, 2, less)
|
Chris@16
|
83
|
Chris@16
|
84 }}
|
Chris@16
|
85
|
Chris@16
|
86 namespace boost { namespace mpl {
|
Chris@16
|
87
|
Chris@16
|
88 template<>
|
Chris@16
|
89 struct less_impl< integral_c_tag,integral_c_tag >
|
Chris@16
|
90 {
|
Chris@16
|
91 template< typename N1, typename N2 > struct apply
|
Chris@16
|
92
|
Chris@16
|
93 {
|
Chris@16
|
94 BOOST_STATIC_CONSTANT(bool, value =
|
Chris@16
|
95 ( BOOST_MPL_AUX_VALUE_WKND(N2)::value >
|
Chris@16
|
96 BOOST_MPL_AUX_VALUE_WKND(N1)::value )
|
Chris@16
|
97 );
|
Chris@16
|
98 typedef bool_<value> type;
|
Chris@16
|
99 };
|
Chris@16
|
100 };
|
Chris@16
|
101
|
Chris@16
|
102 }}
|