Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/mpl/always.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
8 // (See accompanying file LICENSE_1_0.txt or copy at | 8 // (See accompanying file LICENSE_1_0.txt or copy at |
9 // http://www.boost.org/LICENSE_1_0.txt) | 9 // http://www.boost.org/LICENSE_1_0.txt) |
10 // | 10 // |
11 // See http://www.boost.org/libs/mpl for documentation. | 11 // See http://www.boost.org/libs/mpl for documentation. |
12 | 12 |
13 // $Id: always.hpp 49267 2008-10-11 06:19:02Z agurtovoy $ | 13 // $Id$ |
14 // $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $ | 14 // $Date$ |
15 // $Revision: 49267 $ | 15 // $Revision$ |
16 | 16 |
17 #include <boost/mpl/aux_/preprocessor/def_params_tail.hpp> | 17 #include <boost/mpl/aux_/preprocessor/default_params.hpp> |
18 #include <boost/mpl/aux_/na.hpp> | 18 #include <boost/mpl/aux_/na.hpp> |
19 #include <boost/mpl/aux_/arity_spec.hpp> | 19 #include <boost/mpl/aux_/arity_spec.hpp> |
20 | 20 |
21 namespace boost { namespace mpl { | 21 namespace boost { namespace mpl { |
22 | 22 |
23 template< typename Value > struct always | 23 template< typename Value > struct always |
24 { | 24 { |
25 template< | 25 template< |
26 typename T | 26 BOOST_MPL_PP_DEFAULT_PARAMS(BOOST_MPL_LIMIT_METAFUNCTION_ARITY, typename T, na) |
27 BOOST_MPL_PP_NESTED_DEF_PARAMS_TAIL(1, typename T, na) | |
28 > | 27 > |
29 struct apply | 28 struct apply |
30 { | 29 { |
31 typedef Value type; | 30 typedef Value type; |
32 }; | 31 }; |
33 }; | 32 }; |
34 | 33 |
35 BOOST_MPL_AUX_ARITY_SPEC(1, always) | 34 BOOST_MPL_AUX_ARITY_SPEC(0, always) |
36 | 35 |
37 }} | 36 }} |
38 | 37 |
39 #endif // BOOST_MPL_ALWAYS_HPP_INCLUDED | 38 #endif // BOOST_MPL_ALWAYS_HPP_INCLUDED |