From 4c9be806047605b254e608d583c371725d2bc7b4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 22 Apr 2007 11:12:18 +0000 Subject: [PATCH] functional: Formatting fixes. 2007-04-22 Paolo Carlini * include/tr1/functional: Formatting fixes. From-SVN: r124041 --- libstdc++-v3/ChangeLog | 4 ++ libstdc++-v3/include/tr1/functional | 64 ++++++++++++++--------------- 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6f932810e15..e6d889a28e7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2007-04-22 Paolo Carlini + + * include/tr1/functional: Formatting fixes. + 2007-04-22 Paolo Carlini * include/ext/concurrence.h: Do not include , use diff --git a/libstdc++-v3/include/tr1/functional b/libstdc++-v3/include/tr1/functional index e292260c5db..1fcc0dc66e2 100644 --- a/libstdc++-v3/include/tr1/functional +++ b/libstdc++-v3/include/tr1/functional @@ -569,17 +569,17 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) cref(reference_wrapper<_Tp> __t) { return cref(__t.get()); } - template - struct _Mem_fn_const_or_non - { - typedef const _Tp& type; - }; + template + struct _Mem_fn_const_or_non + { + typedef const _Tp& type; + }; - template - struct _Mem_fn_const_or_non<_Tp, false> - { - typedef _Tp& type; - }; + template + struct _Mem_fn_const_or_non<_Tp, false> + { + typedef _Tp& type; + }; /** * @if maint @@ -588,26 +588,26 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) * primary template is the basis case, which derives nothing. * @endif maint */ - template - struct _Maybe_unary_or_binary_function { }; + template + struct _Maybe_unary_or_binary_function { }; /** * @if maint * Derives from @c unary_function, as appropriate. * @endif */ - template - struct _Maybe_unary_or_binary_function<_Res, _T1> - : std::unary_function<_T1, _Res> { }; + template + struct _Maybe_unary_or_binary_function<_Res, _T1> + : std::unary_function<_T1, _Res> { }; /** * @if maint * Derives from @c binary_function, as appropriate. * @endif */ - template - struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> - : std::binary_function<_T1, _T2, _Res> { }; + template + struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> + : std::binary_function<_T1, _T2, _Res> { }; /** * @if maint @@ -842,7 +842,7 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) template static __sfinae_types::__two __check_const(_Tp&, const volatile void*); - public: + public: template struct _Result_type : _Mem_fn_const_or_non<_Res, @@ -987,7 +987,7 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) * in a tuple. * @endif */ - template + template struct _Index_tuple { }; /** @@ -1411,7 +1411,7 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) (_GLIBCXX_TR1::get<_Indexes>(_M_bound_args), __args)...); } - public: + public: typedef _Result result_type; explicit @@ -1457,11 +1457,11 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) * @endif */ template - struct is_bind_expression<_Bind<_Signature> > - { static const bool value = true; }; + struct is_bind_expression<_Bind<_Signature> > + { static const bool value = true; }; - template - const bool is_bind_expression<_Bind<_Signature> >::value; + template + const bool is_bind_expression<_Bind<_Signature> >::value; /** * @if maint @@ -1470,9 +1470,10 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) */ template struct is_bind_expression<_Bind_result<_Result, _Signature> > - { - static const bool value = true; - }; + { static const bool value = true; }; + + template + const bool is_bind_expression<_Bind_result<_Result, _Signature> >::value; template inline @@ -1499,9 +1500,6 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) return __result_type(__maybe_type::__do_wrap(__f), __args...); } - template - const bool is_bind_expression<_Bind_result<_Result, _Signature> >::value; - /** * @brief Exception class thrown when class template function's * operator() is called with an empty target. @@ -1589,7 +1587,9 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) // Converts a reference to a function object into a callable // function object. template - inline _Functor& __callable_functor(_Functor& __f) { return __f; } + inline _Functor& + __callable_functor(_Functor& __f) + { return __f; } template inline _Mem_fn<_Member _Class::*>