help-gplusplus
[Top][All Lists]
Advanced

[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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]