[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: STL iterators
From: |
Ulrich Eckhardt |
Subject: |
Re: STL iterators |
Date: |
Fri, 21 Apr 2006 18:12:23 +0200 |
User-agent: |
KNode/0.9.3 |
Gelu Ionescu wrote:
> My hope is to detect a substring in a string using 2 string::iterators
> it1 & it2.
Don't, std::string has other methods for that. Otherwise, you would need an
algorithm that searches one sequence within another sequence, which is
easy to write but AFAIK not part of the C++ standardlibrary or STL (which
are not the same, btw).
All this has nothing to do with the GCC's C++ compiler though.
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/
- STL iterators, Gelu Ionescu, 2006/04/20
- Re: STL iterators,
Ulrich Eckhardt <=