This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
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