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: search/search_n vs find/find_if


Chris Jefferson wrote:

This is actually very slightly harder than I thought at first... as find is optimised for char types.. therefore it might be necessary to catch if find_if is being given our special comparison object and if so pass it back to find.. however I'm going to investigate to see a) how much speed benefit is actually given by the char specialisations of find and b) how messy it looks delegating find_if to find :)

Sorry, but I don't understand (I was tempted to write "Huh?!?", but someone explained time ago that it's considered unpolite, so... ;) Which optimization?!? Find or fill?!?


Paolo.


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