<div dir="ltr"><div><div>I have:<br>#include &lt;boost/filesystem.hpp&gt;<br>namespace fs=boost::filesystem;<br><br>for (auto&amp; de : fs::directory_iterator(&quot;D:\\prog\\alg\\Diff&quot;))<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>