mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-24 17:47:15 +02:00
fixed non-ascii chars
[SVN r47676]
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -71,21 +71,21 @@ namespace boost { namespace fusion
|
|||||||
{
|
{
|
||||||
namespace ft = function_types;
|
namespace ft = function_types;
|
||||||
|
|
||||||
template<
|
template<
|
||||||
typename Function, class Sequence,
|
typename Function, class Sequence,
|
||||||
int N = result_of::size<Sequence>::value,
|
int N = result_of::size<Sequence>::value,
|
||||||
bool CBI = ft::is_callable_builtin<Function>::value,
|
bool CBI = ft::is_callable_builtin<Function>::value,
|
||||||
bool RandomAccess = traits::is_random_access<Sequence>::value
|
bool RandomAccess = traits::is_random_access<Sequence>::value
|
||||||
>
|
>
|
||||||
struct invoke_impl;
|
struct invoke_impl;
|
||||||
|
|
||||||
template <class Sequence, int N>
|
template <class Sequence, int N>
|
||||||
struct invoke_param_types;
|
struct invoke_param_types;
|
||||||
|
|
||||||
template <typename T, class Sequence>
|
template <typename T, class Sequence>
|
||||||
struct invoke_data_member;
|
struct invoke_data_member;
|
||||||
|
|
||||||
template <typename Function, class Sequence, int N, bool RandomAccess>
|
template <typename Function, class Sequence, int N, bool RandomAccess>
|
||||||
struct invoke_mem_fn;
|
struct invoke_mem_fn;
|
||||||
|
|
||||||
#define BOOST_PP_FILENAME_1 <boost/fusion/functional/invocation/invoke.hpp>
|
#define BOOST_PP_FILENAME_1 <boost/fusion/functional/invocation/invoke.hpp>
|
||||||
@ -116,7 +116,7 @@ namespace boost { namespace fusion
|
|||||||
invoke_mem_fn<Function,Sequence,1,RandomAccess>,
|
invoke_mem_fn<Function,Sequence,1,RandomAccess>,
|
||||||
invoke_data_member<Function, Sequence> >,
|
invoke_data_member<Function, Sequence> >,
|
||||||
mpl::identity< invoke_nonmember_builtin<
|
mpl::identity< invoke_nonmember_builtin<
|
||||||
Function,Sequence,1,RandomAccess> >
|
Function,Sequence,1,RandomAccess> >
|
||||||
>::type
|
>::type
|
||||||
{ };
|
{ };
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef typename boost::add_reference<qualified_type>::type
|
typedef typename boost::add_reference<qualified_type>::type
|
||||||
result_type;
|
result_type;
|
||||||
|
|
||||||
static inline result_type call(T C::* f, Sequence & s)
|
static inline result_type call(T C::* f, Sequence & s)
|
||||||
@ -154,10 +154,10 @@ namespace boost { namespace fusion
|
|||||||
{
|
{
|
||||||
template <typename Function, class Sequence> struct invoke
|
template <typename Function, class Sequence> struct invoke
|
||||||
{
|
{
|
||||||
typedef typename detail::invoke_impl<
|
typedef typename detail::invoke_impl<
|
||||||
typename boost::remove_reference<Function>::type, Sequence
|
typename boost::remove_reference<Function>::type, Sequence
|
||||||
>::result_type type;
|
>::result_type type;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Function, class Sequence>
|
template <typename Function, class Sequence>
|
||||||
@ -242,7 +242,7 @@ namespace boost { namespace fusion
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
typedef typename boost::result_of<
|
typedef typename boost::result_of<
|
||||||
Function(BOOST_PP_ENUM_PARAMS(N,typename seq::T))
|
Function(BOOST_PP_ENUM_PARAMS(N,typename seq::T))
|
||||||
>::type result_type;
|
>::type result_type;
|
||||||
|
|
||||||
template <typename F>
|
template <typename F>
|
||||||
@ -274,7 +274,7 @@ namespace boost { namespace fusion
|
|||||||
typename seq::I0 i0 = fusion::begin(s);
|
typename seq::I0 i0 = fusion::begin(s);
|
||||||
BOOST_PP_REPEAT_FROM_TO(1,N,M,~)
|
BOOST_PP_REPEAT_FROM_TO(1,N,M,~)
|
||||||
|
|
||||||
return (that_ptr< typename mpl::front<
|
return (that_ptr< typename mpl::front<
|
||||||
ft::parameter_types<Function> >::type
|
ft::parameter_types<Function> >::type
|
||||||
>::get(*i0)->*f)(BOOST_PP_ENUM_SHIFTED_PARAMS(N,*i));
|
>::get(*i0)->*f)(BOOST_PP_ENUM_SHIFTED_PARAMS(N,*i));
|
||||||
}
|
}
|
||||||
@ -302,5 +302,5 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
#undef N
|
#undef N
|
||||||
#endif // defined(BOOST_PP_IS_ITERATING)
|
#endif // defined(BOOST_PP_IS_ITERATING)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -51,14 +51,14 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template<
|
template<
|
||||||
class Function, class Sequence,
|
class Function, class Sequence,
|
||||||
int N = result_of::size<Sequence>::value,
|
int N = result_of::size<Sequence>::value,
|
||||||
bool RandomAccess = traits::is_random_access<Sequence>::value
|
bool RandomAccess = traits::is_random_access<Sequence>::value
|
||||||
>
|
>
|
||||||
struct invoke_function_object_impl;
|
struct invoke_function_object_impl;
|
||||||
|
|
||||||
template <class Sequence, int N>
|
template <class Sequence, int N>
|
||||||
struct invoke_function_object_param_types;
|
struct invoke_function_object_param_types;
|
||||||
|
|
||||||
#define BOOST_PP_FILENAME_1 \
|
#define BOOST_PP_FILENAME_1 \
|
||||||
@ -72,10 +72,10 @@ namespace boost { namespace fusion
|
|||||||
{
|
{
|
||||||
template <class Function, class Sequence> struct invoke_function_object
|
template <class Function, class Sequence> struct invoke_function_object
|
||||||
{
|
{
|
||||||
typedef typename detail::invoke_function_object_impl<
|
typedef typename detail::invoke_function_object_impl<
|
||||||
typename boost::remove_reference<Function>::type, Sequence
|
typename boost::remove_reference<Function>::type, Sequence
|
||||||
>::result_type type;
|
>::result_type type;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Function, class Sequence>
|
template <class Function, class Sequence>
|
||||||
@ -114,7 +114,7 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
typedef typename boost::result_of<
|
typedef typename boost::result_of<
|
||||||
#define M(z,j,data) \
|
#define M(z,j,data) \
|
||||||
typename result_of::at_c<Sequence,j>::type
|
typename result_of::at_c<Sequence,j>::type
|
||||||
Function (BOOST_PP_ENUM(N,M,~)) >::type result_type;
|
Function (BOOST_PP_ENUM(N,M,~)) >::type result_type;
|
||||||
#undef M
|
#undef M
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ namespace boost { namespace fusion
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Sequence>
|
template <class Sequence>
|
||||||
struct invoke_function_object_param_types<Sequence,N>
|
struct invoke_function_object_param_types<Sequence,N>
|
||||||
{
|
{
|
||||||
#if N > 0
|
#if N > 0
|
||||||
@ -173,5 +173,5 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
#undef N
|
#undef N
|
||||||
#endif // defined(BOOST_PP_IS_ITERATING)
|
#endif // defined(BOOST_PP_IS_ITERATING)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2005-2006 João Abecasis
|
Copyright (c) 2005-2006 Joao Abecasis
|
||||||
Copyright (c) 2006-2007 Tobias Schwinger
|
Copyright (c) 2006-2007 Tobias Schwinger
|
||||||
|
|
||||||
Use modification and distribution are subject to the Boost Software
|
Use modification and distribution are subject to the Boost Software
|
||||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
http://www.boost.org/LICENSE_1_0.txt).
|
http://www.boost.org/LICENSE_1_0.txt).
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
@ -58,8 +58,8 @@ namespace boost { namespace fusion
|
|||||||
{
|
{
|
||||||
namespace ft = function_types;
|
namespace ft = function_types;
|
||||||
|
|
||||||
template<
|
template<
|
||||||
typename Function, class Sequence,
|
typename Function, class Sequence,
|
||||||
int N = result_of::size<Sequence>::value,
|
int N = result_of::size<Sequence>::value,
|
||||||
bool MFP = ft::is_member_function_pointer<Function>::value,
|
bool MFP = ft::is_member_function_pointer<Function>::value,
|
||||||
bool RandomAccess = traits::is_random_access<Sequence>::value
|
bool RandomAccess = traits::is_random_access<Sequence>::value
|
||||||
@ -167,5 +167,5 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
#undef N
|
#undef N
|
||||||
#endif // defined(BOOST_PP_IS_ITERATING)
|
#endif // defined(BOOST_PP_IS_ITERATING)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user