[Bug libstdc++/50661] std::equal should use more efficient version for arrays of pointers
marc.glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 8 08:51:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50661
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.glisse at normalesup
| |dot org
--- Comment #4 from Marc Glisse <marc.glisse at normalesup dot org> 2011-10-08 08:50:00 UTC ---
This seems to call for a traits class (provided by compiler magic) that tells
whether objects are memcmp-comparable (although we might have to be careful to
ask it about the status of T[] instead of plain T, not sure about that). There
are already traits telling whether objects can be copied with memcpy, (I think)
whether objects can be initialized with bzero, etc.
More information about the Gcc-bugs
mailing list