Chris@16
|
1 //-----------------------------------------------------------------------------
|
Chris@16
|
2 // boost variant/detail/substitute_fwd.hpp header file
|
Chris@16
|
3 // See http://www.boost.org for updates, documentation, and revision history.
|
Chris@16
|
4 //-----------------------------------------------------------------------------
|
Chris@16
|
5 //
|
Chris@16
|
6 // Copyright (c) 2003
|
Chris@16
|
7 // Eric Friedman
|
Chris@16
|
8 //
|
Chris@16
|
9 // Distributed under the Boost Software License, Version 1.0. (See
|
Chris@16
|
10 // accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
11 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
12
|
Chris@16
|
13 #ifndef BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
|
Chris@16
|
14 #define BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
|
Chris@16
|
15
|
Chris@16
|
16 #include "boost/mpl/aux_/lambda_arity_param.hpp"
|
Chris@16
|
17 #include "boost/mpl/aux_/template_arity.hpp"
|
Chris@16
|
18 #include "boost/mpl/int_fwd.hpp"
|
Chris@16
|
19
|
Chris@16
|
20
|
Chris@16
|
21 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
22 // BOOST_VARIANT_DETAIL_NO_SUBSTITUTE
|
Chris@16
|
23 //
|
Chris@16
|
24 // Defined if 'substitute' is not implementable on the current compiler.
|
Chris@16
|
25 //
|
Chris@16
|
26
|
Chris@16
|
27 #include "boost/mpl/aux_/config/ctps.hpp"
|
Chris@16
|
28 #include "boost/mpl/aux_/config/ttp.hpp"
|
Chris@16
|
29
|
Chris@16
|
30 #if defined(BOOST_NO_TEMPLATE_TEMPLATE_PARAMETERS) \
|
Chris@16
|
31 && !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
32 # define BOOST_VARIANT_DETAIL_NO_SUBSTITUTE
|
Chris@16
|
33 #endif
|
Chris@16
|
34
|
Chris@16
|
35 namespace boost {
|
Chris@16
|
36 namespace detail { namespace variant {
|
Chris@16
|
37
|
Chris@16
|
38 #if !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
39
|
Chris@16
|
40 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
41 // metafunction substitute
|
Chris@16
|
42 //
|
Chris@16
|
43 // Substitutes one type for another in the given type expression.
|
Chris@16
|
44 //
|
Chris@16
|
45 template <
|
Chris@16
|
46 typename T, typename Dest, typename Source
|
Chris@16
|
47 BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(
|
Chris@16
|
48 typename Arity = mpl::int_< mpl::aux::template_arity<T>::value >
|
Chris@16
|
49 )
|
Chris@16
|
50 >
|
Chris@16
|
51 struct substitute;
|
Chris@16
|
52
|
Chris@16
|
53 #endif // !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
54
|
Chris@16
|
55 }} // namespace detail::variant
|
Chris@16
|
56 } // namespace boost
|
Chris@16
|
57
|
Chris@16
|
58 #endif // BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
|