This is the mail archive of the gcc-patches@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]

Re: [patch] : so_7 search improvement take 2


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

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