#include <stlsoft/iterators/c_str_inserter.hpp>
It would be used as shown in the following example, which copies all files found in the local directory to the vector of strings:
std::vector<std::string> c1; unixstl::readdir_sequence files("."); std::copy(files.begin(), files.end(), c_str_inserter(std::back_inserter(c1))); std::cout << "Files:" << std::endl; std::copy(c1.begin(), c1.end(), stlsoft::ostream_iterator<std::string>(std::cout, "\t", "\n"));
Public Types | |
typedef F | function_type |
typedef c_str_ptr_extract_iterator< F > | class_type |
Public Member Functions | |
c_str_ptr_extract_iterator (F &f) | |
deref_proxy | operator* () |
class_type & | operator++ () |
class_type | operator++ (int) |
Classes | |
class | deref_proxy |