This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] : so_7 search improvement take 2
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: chris jefferson <caj at cs dot york dot ac dot uk>,libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Jun 2005 17:46:52 +0200
- Subject: Re: [patch] : so_7 search improvement take 2
- References: <42B81760.4020006@cs.york.ac.uk> <42BFD811.2060507@suse.de> <42BFFC08.5040303@suse.de>
Paolo Carlini wrote:
>Can you please check whether we have got all the explicit instantiations
>right? I don't think so.
>
>
I'm finishing testing succesfully together with the below: I hope to
commit later today.
Paolo.
P.S. Notice that the new __search and __find_if are both 't', like the
existing search.
////////////
--- string-inst.cc.~1.31.8.2.~ 2005-02-18 18:59:01.000000000 +0100
+++ string-inst.cc 2005-06-29 16:51:33.000000000 +0200
@@ -63,10 +63,21 @@
template
S::basic_string(S::iterator, S::iterator, const allocator<C>&);
- // Used in str::find.
+ // Used in basic_string::find.
template
const C*
search(const C*, const C*, const C*, const C*, bool(*)(const C&, const C&));
+
+ template
+ const C*
+ __search(const C*, const C*, const C*, const C*,
+ bool(*)(const C&, const C&),
+ random_access_iterator_tag, random_access_iterator_tag);
+ template
+ const C*
+ __find_if(const C*, const C*,
+ __gnu_cxx::__ops::__bind2nd<bool(*)(const C&, const C&), C>,
+ random_access_iterator_tag);
} // namespace std
namespace __gnu_cxx