This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/50661] std::equal should use more efficient version for arrays of pointers


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.


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