Commit afd4cbbb by Paolo Carlini Committed by Paolo Carlini

stl_function.h: Additional minor tweaks.

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_function.h: Additional minor tweaks.

From-SVN: r77078
parent f6592a9e
2004-02-01 Paolo Carlini <pcarlini@suse.de> 2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Additional minor tweaks.
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/deque.tcc: Wrap overlong lines, constify * include/bits/deque.tcc: Wrap overlong lines, constify
a few variables, reformat according to the coding standards. a few variables, reformat according to the coding standards.
* include/bits/list.tcc: Likewise. * include/bits/list.tcc: Likewise.
......
...@@ -339,7 +339,7 @@ namespace std ...@@ -339,7 +339,7 @@ namespace std
_Predicate _M_pred; _Predicate _M_pred;
public: public:
explicit binary_negate(const _Predicate& __x) explicit binary_negate(const _Predicate& __x)
: _M_pred(__x) { } : _M_pred(__x) { }
bool bool
operator()(const typename _Predicate::first_argument_type& __x, operator()(const typename _Predicate::first_argument_type& __x,
...@@ -397,7 +397,7 @@ namespace std ...@@ -397,7 +397,7 @@ namespace std
public: public:
binder1st(const _Operation& __x, binder1st(const _Operation& __x,
const typename _Operation::first_argument_type& __y) const typename _Operation::first_argument_type& __y)
: op(__x), value(__y) {} : op(__x), value(__y) {}
typename _Operation::result_type typename _Operation::result_type
operator()(const typename _Operation::second_argument_type& __x) const operator()(const typename _Operation::second_argument_type& __x) const
...@@ -431,7 +431,7 @@ namespace std ...@@ -431,7 +431,7 @@ namespace std
public: public:
binder2nd(const _Operation& __x, binder2nd(const _Operation& __x,
const typename _Operation::second_argument_type& __y) const typename _Operation::second_argument_type& __y)
: op(__x), value(__y) {} : op(__x), value(__y) {}
typename _Operation::result_type typename _Operation::result_type
operator()(const typename _Operation::first_argument_type& __x) const operator()(const typename _Operation::first_argument_type& __x) const
...@@ -500,7 +500,7 @@ namespace std ...@@ -500,7 +500,7 @@ namespace std
/// One of the @link s20_3_7_adaptors adaptors for function pointers@endlink. /// One of the @link s20_3_7_adaptors adaptors for function pointers@endlink.
template <class _Arg1, class _Arg2, class _Result> template <class _Arg1, class _Arg2, class _Result>
class pointer_to_binary_function class pointer_to_binary_function
: public binary_function<_Arg1, _Arg2, _Result> : public binary_function<_Arg1, _Arg2, _Result>
{ {
protected: protected:
_Result (*_M_ptr)(_Arg1, _Arg2); _Result (*_M_ptr)(_Arg1, _Arg2);
...@@ -603,7 +603,7 @@ namespace std ...@@ -603,7 +603,7 @@ namespace std
{ {
public: public:
explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const)
: _M_f(__pf) {} : _M_f(__pf) {}
_Ret _Ret
operator()(const _Tp* __p) const operator()(const _Tp* __p) const
...@@ -618,7 +618,7 @@ namespace std ...@@ -618,7 +618,7 @@ namespace std
{ {
public: public:
explicit mem_fun_ref_t(_Ret (_Tp::*__pf)()) explicit mem_fun_ref_t(_Ret (_Tp::*__pf)())
: _M_f(__pf) {} : _M_f(__pf) {}
_Ret _Ret
operator()(_Tp& __r) const operator()(_Tp& __r) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment