[Patch] First bits of the algo merge
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu Dec 15 03:16:00 GMT 2005
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
More information about the Libstdc++
mailing list