boost::filesystem::is_regular_file
// In header: <boost/filesystem/file_status.hpp> bool is_regular_file(file_status f);
Returns:
f.type() == regular_file.
f.type() == regular_file