diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-12 08:10:24 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-12 08:10:24 +0000 |
commit | 8cb228ad88db91e7ab9e58ef4c29a6290a328d47 (patch) | |
tree | d3f42a3c1845cabd339039399a6b2c942a135e9f /libstdc++-v3/src/string-inst.cc | |
parent | 15482a0dfa68ede297623c8c2f58bf6f751cb63f (diff) | |
download | gcc-8cb228ad88db91e7ab9e58ef4c29a6290a328d47.tar.gz |
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/ext/algorithm: Trivial formatting fixes.
* include/ext/functional: Likewise.
* include/ext/hash_fun.h: Likewise.
* include/ext/iterator: Likewise.
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (find(const _CharT*, size_type,
size_type)): Reimplement using std::search.
* src/string-inst.cc: Instantiate std::search for char/wchar_t.
2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
* testsuite/performance/21_strings/string_find.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83022 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/string-inst.cc')
-rw-r--r-- | libstdc++-v3/src/string-inst.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/src/string-inst.cc b/libstdc++-v3/src/string-inst.cc index e01dbcaedbf..4c49453232a 100644 --- a/libstdc++-v3/src/string-inst.cc +++ b/libstdc++-v3/src/string-inst.cc @@ -76,6 +76,11 @@ namespace std C* S::_S_construct(const C*, const C*, const allocator<C>&, forward_iterator_tag); + + // Used in str::find. + template + const C* + search(const C*, const C*, const C*, const C*, bool(*)(const C&, const C&)); } // namespace std namespace __gnu_cxx |