aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-02-05 15:39:16 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-02-05 15:39:16 +0000
commit92ff3e4314da1794b2c3e0704b1e25383f47b0dd (patch)
tree3d148f7b730b7a73e7f757081abec0cd3722bf58
parente0b24bcec981d56c0d78ae952795806e6887cea2 (diff)
downloadgcc-92ff3e4314da1794b2c3e0704b1e25383f47b0dd.zip
gcc-92ff3e4314da1794b2c3e0704b1e25383f47b0dd.tar.gz
gcc-92ff3e4314da1794b2c3e0704b1e25383f47b0dd.tar.bz2
stl_function.h: Minor formatting changes.
2004-02-05 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_function.h: Minor formatting changes. From-SVN: r77316
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/stl_function.h66
2 files changed, 37 insertions, 33 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index ae4e434..e647afe 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-05 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/stl_function.h: Minor formatting changes.
+
2004-02-04 Zack Weinberg <zack@codesourcery.com>
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 fed4124..df7aeed 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Tp>
- 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 <class _Ret, class _Tp>
- 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 <class _Ret, class _Tp>
- 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 <class _Ret, class _Tp>
- 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 <class _Ret, class _Tp>
- 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 <class _Ret, class _Tp, class _Arg>
- 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 <class _Ret, class _Tp, class _Arg>
- 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 <class _Ret, class _Tp, class _Arg>
- 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 <class _Ret, class _Tp, class _Arg>
- 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); }
/** @} */