This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] First bits of the algo merge


Howard Hinnant <hhinnant@apple.com> writes:

| It should look more like:
| 
| template <class _Lhs, class _Rhs = _Lhs>
| struct equal_to
| {
|      bool operator()(const _Lhs& __lhs, const _Lhs& __rhs) const
| {return __lhs == __rhs;}
|      bool operator()(const _Lhs& __lhs, const _Rhs& __rhs) const
| {return __lhs == __rhs;}
|      bool operator()(const _Rhs& __lhs, const _Lhs& __rhs) const
| {return __lhs == __rhs;}
|      bool operator()(const _Rhs& __lhs, const _Rhs& __rhs) const
| {return __lhs == __rhs;}
| };

How is that "better" than the original implementation?

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]