<div dir="ltr"><div><div>I have:<br>#include <boost/filesystem.hpp><br>namespace fs=boost::filesystem;<br><br>for (auto& de : fs::directory_iterator("D:\\prog\\alg\\Diff"))<br>{<br> fs::path p = de.path();<br> auto ext = fs::extension(p);<br>}<br><br> directory_iterator is object or non-objective method?<br></div>How can I write something similar, but database iterator.<br>I want get information from mySQL. The simplest way is add everything returning by select to vector of vector of string.<br></div>But I prefer database iterator. How it write? How is in general directory_iterator as a iterator model?<br></div>