Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // -- select_functions.hpp -- Boost Lambda Library --------------------------
3 // Copyright (C) 1999, 2000 Jaakko Järvi (jaakko.jarvi@cs.utu.fi)
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // For more information, see http://www.boost.org
12 #ifndef BOOST_LAMBDA_SELECT_FUNCTIONS_HPP
13 #define BOOST_LAMBDA_SELECT_FUNCTIONS_HPP
20 // select functions -------------------------------
21 template<class Any, CALL_TEMPLATE_ARGS>
22 inline Any& select(Any& any, CALL_FORMAL_ARGS) { CALL_USE_ARGS; return any; }
25 template<class Arg, CALL_TEMPLATE_ARGS>
26 inline typename Arg::template sig<tuple<CALL_REFERENCE_TYPES> >::type
27 select ( const lambda_functor<Arg>& op, CALL_FORMAL_ARGS ) {
28 return op.template call<
29 typename Arg::template sig<tuple<CALL_REFERENCE_TYPES> >::type
32 template<class Arg, CALL_TEMPLATE_ARGS>
33 inline typename Arg::template sig<tuple<CALL_REFERENCE_TYPES> >::type
34 select ( lambda_functor<Arg>& op, CALL_FORMAL_ARGS) {
35 return op.template call<
36 typename Arg::template sig<tuple<CALL_REFERENCE_TYPES> >::type
40 // ------------------------------------------------------------------------
41 // select functions where the return type is explicitly given
42 // Note: on many functions, this return type is just discarded.
43 // The select functions are inside a class template, and the return type
44 // is a class template argument.
45 // The first implementation used function templates with an explicitly
46 // specified template parameter.
47 // However, this resulted in ambiguous calls (at least with gcc 2.95.2
48 // and edg 2.44). Not sure whether the compilers were right or wrong.
50 template<class RET> struct r_select {
53 template<class Any, CALL_TEMPLATE_ARGS>
55 inline RET go (Any& any, CALL_FORMAL_ARGS) { CALL_USE_ARGS; return any; }
58 template<class Arg, CALL_TEMPLATE_ARGS>
60 inline RET go (const lambda_functor<Arg>& op, CALL_FORMAL_ARGS ) {
61 return op.template call<RET>(CALL_ACTUAL_ARGS);
63 template<class Arg, CALL_TEMPLATE_ARGS>
65 inline RET go (lambda_functor<Arg>& op, CALL_FORMAL_ARGS ) {
66 return op.template call<RET>(CALL_ACTUAL_ARGS);