123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462 |
- // Copyright Aleksey Gurtovoy 2000-2008
- //
- // Distributed under the Boost Software License, Version 1.0.
- // (See accompanying file LICENSE_1_0.txt or copy at
- // http://www.boost.org/LICENSE_1_0.txt)
- //
- // *Preprocessed* version of the main "apply_wrap.hpp" header
- // -- DO NOT modify by hand!
- namespace boost { namespace mpl {
- template<
- int N, typename F
- >
- struct apply_wrap_impl0;
- template< typename F, bool F_has_apply >
- struct apply_wrap_impl0_bcb {
- typedef typename F::template apply<na> type;
- };
- template< typename F >
- struct apply_wrap_impl0_bcb< F,true > {
- typedef typename F::apply type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 0
- , F
-
- >
- {
- typedef apply_wrap_impl0_bcb< F, aux::has_apply<F>::value >::type type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 1
- , F
-
- >
- {
- typedef typename F::template apply<
-
- na
- > type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 2
- , F
-
- >
- {
- typedef typename F::template apply<
-
- na, na
- > type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 3
- , F
-
- >
- {
- typedef typename F::template apply<
-
- na, na, na
- > type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 4
- , F
-
- >
- {
- typedef typename F::template apply<
-
- na, na, na, na
- > type;
- };
- template<
- typename F
- >
- struct apply_wrap_impl0<
- 5
- , F
-
- >
- {
- typedef typename F::template apply<
-
- na, na, na, na, na
- > type;
- };
- template<
- typename F
- >
- struct apply_wrap0
- : apply_wrap_impl0<
- ::boost::mpl::aux::arity< F,0 >::value
- , F
-
- >::type
- {
- };
- template<
- int N, typename F, typename T1
- >
- struct apply_wrap_impl1;
- template<
- typename F, typename T1
- >
- struct apply_wrap_impl1<
- 1
- , F
- , T1
- >
- {
- typedef typename F::template apply<
- T1
- > type;
- };
- template<
- typename F, typename T1
- >
- struct apply_wrap_impl1<
- 2
- , F
- , T1
- >
- {
- typedef typename F::template apply<
- T1
- , na
- > type;
- };
- template<
- typename F, typename T1
- >
- struct apply_wrap_impl1<
- 3
- , F
- , T1
- >
- {
- typedef typename F::template apply<
- T1
- , na, na
- > type;
- };
- template<
- typename F, typename T1
- >
- struct apply_wrap_impl1<
- 4
- , F
- , T1
- >
- {
- typedef typename F::template apply<
- T1
- , na, na, na
- > type;
- };
- template<
- typename F, typename T1
- >
- struct apply_wrap_impl1<
- 5
- , F
- , T1
- >
- {
- typedef typename F::template apply<
- T1
- , na, na, na, na
- > type;
- };
- template<
- typename F, typename T1
- >
- struct apply_wrap1
- : apply_wrap_impl1<
- ::boost::mpl::aux::arity< F,1 >::value
- , F
- , T1
- >::type
- {
- };
- template<
- int N, typename F, typename T1, typename T2
- >
- struct apply_wrap_impl2;
- template<
- typename F, typename T1, typename T2
- >
- struct apply_wrap_impl2<
- 2
- , F
- , T1, T2
- >
- {
- typedef typename F::template apply<
- T1, T2
- > type;
- };
- template<
- typename F, typename T1, typename T2
- >
- struct apply_wrap_impl2<
- 3
- , F
- , T1, T2
- >
- {
- typedef typename F::template apply<
- T1, T2
- , na
- > type;
- };
- template<
- typename F, typename T1, typename T2
- >
- struct apply_wrap_impl2<
- 4
- , F
- , T1, T2
- >
- {
- typedef typename F::template apply<
- T1, T2
- , na, na
- > type;
- };
- template<
- typename F, typename T1, typename T2
- >
- struct apply_wrap_impl2<
- 5
- , F
- , T1, T2
- >
- {
- typedef typename F::template apply<
- T1, T2
- , na, na, na
- > type;
- };
- template<
- typename F, typename T1, typename T2
- >
- struct apply_wrap2
- : apply_wrap_impl2<
- ::boost::mpl::aux::arity< F,2 >::value
- , F
- , T1, T2
- >::type
- {
- };
- template<
- int N, typename F, typename T1, typename T2, typename T3
- >
- struct apply_wrap_impl3;
- template<
- typename F, typename T1, typename T2, typename T3
- >
- struct apply_wrap_impl3<
- 3
- , F
- , T1, T2, T3
- >
- {
- typedef typename F::template apply<
- T1, T2, T3
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3
- >
- struct apply_wrap_impl3<
- 4
- , F
- , T1, T2, T3
- >
- {
- typedef typename F::template apply<
- T1, T2, T3
- , na
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3
- >
- struct apply_wrap_impl3<
- 5
- , F
- , T1, T2, T3
- >
- {
- typedef typename F::template apply<
- T1, T2, T3
- , na, na
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3
- >
- struct apply_wrap3
- : apply_wrap_impl3<
- ::boost::mpl::aux::arity< F,3 >::value
- , F
- , T1, T2, T3
- >::type
- {
- };
- template<
- int N, typename F, typename T1, typename T2, typename T3, typename T4
- >
- struct apply_wrap_impl4;
- template<
- typename F, typename T1, typename T2, typename T3, typename T4
- >
- struct apply_wrap_impl4<
- 4
- , F
- , T1, T2, T3, T4
- >
- {
- typedef typename F::template apply<
- T1, T2, T3, T4
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3, typename T4
- >
- struct apply_wrap_impl4<
- 5
- , F
- , T1, T2, T3, T4
- >
- {
- typedef typename F::template apply<
- T1, T2, T3, T4
- , na
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3, typename T4
- >
- struct apply_wrap4
- : apply_wrap_impl4<
- ::boost::mpl::aux::arity< F,4 >::value
- , F
- , T1, T2, T3, T4
- >::type
- {
- };
- template<
- int N, typename F, typename T1, typename T2, typename T3, typename T4
- , typename T5
- >
- struct apply_wrap_impl5;
- template<
- typename F, typename T1, typename T2, typename T3, typename T4
- , typename T5
- >
- struct apply_wrap_impl5<
- 5
- , F
- , T1, T2, T3, T4, T5
- >
- {
- typedef typename F::template apply<
- T1, T2, T3, T4, T5
- > type;
- };
- template<
- typename F, typename T1, typename T2, typename T3, typename T4
- , typename T5
- >
- struct apply_wrap5
- : apply_wrap_impl5<
- ::boost::mpl::aux::arity< F,5 >::value
- , F
- , T1, T2, T3, T4, T5
- >::type
- {
- };
- }}
|