merged from main trunk

[SVN r15767]
This commit is contained in:
Aleksey Gurtovoy committed 2002-10-07 13:10:10 +00:00
1 parent db832a45e3
commit cb39883773
40 files changed
+46 -147

No files matched your search

+6 -6
View File
@@ -52,7 +52,7 @@ Inline composition is very appealing syntactically when one deals with metafunct
<programlisting><![CDATA[
typedef mpl::logical_or<
mpl::less< mpl::size_of<_1>, mpl::int_c<16> >
mpl::less< mpl::sizeof_<_1>, mpl::int_c<16> >
, boost::is_same<_1,_2>
> expr;
@@ -71,7 +71,7 @@ The alternative way to write an equivalent of the above metafunction class would
typedef bind<
mpl::meta_fun2<mpl::logical_or>
, mpl::bind< mpl::meta_fun2<mpl::less>
, mpl::bind< mpl::meta_fun1<mpl::size_of>,_1 >
, mpl::bind< mpl::meta_fun1<mpl::sizeof_>,_1 >
, mpl::int_c<16>
>
, mpl::bind< mpl::meta_fun2<boost::is_same>,_1,_2 >
@@ -89,7 +89,7 @@ For its own metafunctions (algorithms, primitives, etc.), &MPL; enables one to w
<programlisting><![CDATA[
typedef mpl::bind<
mpl::logical_or<>
, mpl::bind< mpl::less<>, mpl::bind<mpl::size_of<>,_1>, mpl::int_c<16> >
, mpl::bind< mpl::less<>, mpl::bind<mpl::sizeof_<>,_1>, mpl::int_c<16> >
, mpl::bind< mpl::make_f2<boost::is_same>, _1,_2 >
> func;
]]></>
@@ -112,7 +112,7 @@ struct my_predicate
};
typedef mpl::logical_or<
mpl::less< mpl::size_of<_>,mpl::int_c<16> >
mpl::less< mpl::sizeof_<_>,mpl::int_c<16> >
, mpl::bind< my_predicate,_,_ > // here
> expr;
]]></>
@@ -123,7 +123,7 @@ To bind something to one of its arguments (or change the order of parameters), t
<programlisting><![CDATA[
typedef mpl::logical_or<
mpl::less< mpl::size_of<_>,mpl::int_c<16> >
mpl::less< mpl::sizeof_<_>,mpl::int_c<16> >
, mpl::bind<my_predicate,int,_>::type // here
> expr;
]]></>
@@ -134,7 +134,7 @@ or
<programlisting><![CDATA[
typedef mpl::logical_or<
mpl::less< mpl::size_of<_>,mpl::int_c<16> >
mpl::less< mpl::sizeof_<_>,mpl::int_c<16> >
, my_predicate::apply<int,_> // here
> expr;
]]></>
+3 -3
View File
@@ -183,7 +183,7 @@ struct largest
typedef typename mpl::max_element<
mpl::transform_view<
Sequence
, mpl::size_of<_>
, mpl::sizeof_<_>
>
>::type type;
};
@@ -201,8 +201,8 @@ struct largest
typedef typename mpl::max_element<
Sequence
mpl::less<
mpl::size_of<_1>
, mpl::size_of<_2>
mpl::sizeof_<_1>
, mpl::sizeof_<_2>
>
>::type iter;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 17 KiB