From: Michael Goldshteyn (mgoldshteyn_at_[hidden])
Date: 2005-03-24 10:27:51
typedef std::deque<char> DequeString;
std::string s("Hello sweet world!");
// Copy "Hello sweet world!" into the deque string
// Now, I want to find where "sweet" appears in the dequeString. An iterator
to its location would be fine.
// This doesn't quite do it, since it looks for _any_ occurrence of a
character from word in dequeString
// But, I want to find where _the whole_ word occurs in dequeString, similar
to how std::string::find() does it:
Is there something in boost or the standard C++ lib that can be used?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk