diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ae4e4343cf1..e647afe3265 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2004-02-05 Paolo Carlini + + * include/bits/stl_function.h: Minor formatting changes. + 2004-02-04 Zack Weinberg Revert previous change to config/abi/*/baseline_symbols.txt. diff --git a/libstdc++-v3/include/bits/stl_function.h b/libstdc++-v3/include/bits/stl_function.h index fed4124661a..df7aeed1210 100644 --- a/libstdc++-v3/include/bits/stl_function.h +++ b/libstdc++-v3/include/bits/stl_function.h @@ -131,7 +131,7 @@ namespace std */ /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct plus : public binary_function<_Tp,_Tp,_Tp> + struct plus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const @@ -140,7 +140,7 @@ namespace std /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct minus : public binary_function<_Tp,_Tp,_Tp> + struct minus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const @@ -149,7 +149,7 @@ namespace std /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct multiplies : public binary_function<_Tp,_Tp,_Tp> + struct multiplies : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const @@ -158,7 +158,7 @@ namespace std /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct divides : public binary_function<_Tp,_Tp,_Tp> + struct divides : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const @@ -167,7 +167,7 @@ namespace std /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct modulus : public binary_function<_Tp,_Tp,_Tp> + struct modulus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const @@ -176,7 +176,7 @@ namespace std /// One of the @link s20_3_2_arithmetic math functors@endlink. template - struct negate : public unary_function<_Tp,_Tp> + struct negate : public unary_function<_Tp, _Tp> { _Tp operator()(const _Tp& __x) const @@ -193,7 +193,7 @@ namespace std */ /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct equal_to : public binary_function<_Tp,_Tp,bool> + struct equal_to : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -202,7 +202,7 @@ namespace std /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct not_equal_to : public binary_function<_Tp,_Tp,bool> + struct not_equal_to : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -211,7 +211,7 @@ namespace std /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct greater : public binary_function<_Tp,_Tp,bool> + struct greater : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -220,7 +220,7 @@ namespace std /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct less : public binary_function<_Tp,_Tp,bool> + struct less : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -229,7 +229,7 @@ namespace std /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct greater_equal : public binary_function<_Tp,_Tp,bool> + struct greater_equal : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -238,7 +238,7 @@ namespace std /// One of the @link s20_3_3_comparisons comparison functors@endlink. template - struct less_equal : public binary_function<_Tp,_Tp,bool> + struct less_equal : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -254,7 +254,7 @@ namespace std */ /// One of the @link s20_3_4_logical Boolean operations functors@endlink. template - struct logical_and : public binary_function<_Tp,_Tp,bool> + struct logical_and : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -263,7 +263,7 @@ namespace std /// One of the @link s20_3_4_logical Boolean operations functors@endlink. template - struct logical_or : public binary_function<_Tp,_Tp,bool> + struct logical_or : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const @@ -272,7 +272,7 @@ namespace std /// One of the @link s20_3_4_logical Boolean operations functors@endlink. template - struct logical_not : public unary_function<_Tp,bool> + struct logical_not : public unary_function<_Tp, bool> { bool operator()(const _Tp& __x) const @@ -772,8 +772,8 @@ namespace std : _M_f(__pf) {} void - operator()(const _Tp& __r) - const { (__r.*_M_f)(); } + operator()(const _Tp& __r) const + { (__r.*_M_f)(); } private: void (_Tp::*_M_f)() const; }; @@ -848,44 +848,44 @@ namespace std // Mem_fun adaptor helper functions. There are only two: // mem_fun and mem_fun_ref. template - inline mem_fun_t<_Ret,_Tp> + inline mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)()) - { return mem_fun_t<_Ret,_Tp>(__f); } + { return mem_fun_t<_Ret, _Tp>(__f); } template - inline const_mem_fun_t<_Ret,_Tp> + inline const_mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)() const) - { return const_mem_fun_t<_Ret,_Tp>(__f); } + { return const_mem_fun_t<_Ret, _Tp>(__f); } template - inline mem_fun_ref_t<_Ret,_Tp> + inline mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)()) - { return mem_fun_ref_t<_Ret,_Tp>(__f); } + { return mem_fun_ref_t<_Ret, _Tp>(__f); } template - inline const_mem_fun_ref_t<_Ret,_Tp> + inline const_mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) - { return const_mem_fun_ref_t<_Ret,_Tp>(__f); } + { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } template - inline mem_fun1_t<_Ret,_Tp,_Arg> + inline mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg)) - { return mem_fun1_t<_Ret,_Tp,_Arg>(__f); } + { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template - inline const_mem_fun1_t<_Ret,_Tp,_Arg> + inline const_mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg) const) - { return const_mem_fun1_t<_Ret,_Tp,_Arg>(__f); } + { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template - inline mem_fun1_ref_t<_Ret,_Tp,_Arg> + inline mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) - { return mem_fun1_ref_t<_Ret,_Tp,_Arg>(__f); } + { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } template - inline const_mem_fun1_ref_t<_Ret,_Tp,_Arg> + inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) - { return const_mem_fun1_ref_t<_Ret,_Tp,_Arg>(__f); } + { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } /** @} */