としたにあんの左脳

備忘録です.

2014-10-16から1日間の記事一覧

C++でglobっぽいの

参考:c++ - Can I use a mask to iterate files in a directory with Boost? - Stack Overflow boost使う #include <boost/filesystem.hpp> #include <boost/regex.hpp> #include <boost/foreach.hpp> void re_glob(boost::filesystem::path& target_path, std::string& re, std::vector< std::string >& results) { con</boost/foreach.hpp></boost/regex.hpp></boost/filesystem.hpp>…