35#ifndef _RWSTD_NO_NAMESPACE
42 char seq[40] =
"Here's a string with a substring in it";
43 char subseq[10] =
"substring";
44 list<char,allocator<char> > sequence(seq, seq+38);
45 list<char,allocator<char> > subseqnc(subseq, subseq+9);
49 cout << endl <<
"The subsequence, " << subseq <<
", was found at the ";
50 cout << endl <<
"location identified by a '*'" << endl <<
" ";
55 list<char,allocator<char> >::iterator place;
59 place = search(sequence.begin(), sequence.end(),
60 subseqnc.begin(), subseqnc.end());
68 for (list<
char,allocator<char> >::iterator
i = sequence.begin();
i != sequence.end();
i++)