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_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
|
Chris@16
|
32 && !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
33 # define BOOST_VARIANT_DETAIL_NO_SUBSTITUTE
|
Chris@16
|
34 #endif
|
Chris@16
|
35
|
Chris@16
|
36 namespace boost {
|
Chris@16
|
37 namespace detail { namespace variant {
|
Chris@16
|
38
|
Chris@16
|
39 #if !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
40
|
Chris@16
|
41 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
42 // metafunction substitute
|
Chris@16
|
43 //
|
Chris@16
|
44 // Substitutes one type for another in the given type expression.
|
Chris@16
|
45 //
|
Chris@16
|
46 template <
|
Chris@16
|
47 typename T, typename Dest, typename Source
|
Chris@16
|
48 BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(
|
Chris@16
|
49 typename Arity = mpl::int_< mpl::aux::template_arity<T>::value >
|
Chris@16
|
50 )
|
Chris@16
|
51 >
|
Chris@16
|
52 struct substitute;
|
Chris@16
|
53
|
Chris@16
|
54 #endif // !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
|
Chris@16
|
55
|
Chris@16
|
56 }} // namespace detail::variant
|
Chris@16
|
57 } // namespace boost
|
Chris@16
|
58
|
Chris@16
|
59 #endif // BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
|