Suppose I want to have itertors for my own class.
In particular, I have a class with the purpose of resolving wildcarded filenames for me (searches the filesystem for any files that match, stores them internally).

Is there a way I can make the class expose an output iterator even if I don't have an STL container internally? So I can do:

vector<string> vs;
CFileGetter fg(file, bRecursive);
copy(fg.begin(), fg.end(), back_inserter(vs));


Thx in advance.