...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::process::search_path
// In header: <boost/process/search_path.hpp> boost::process::filesystem::path search_path(const boost::process::filesystem::path & filename, const std::vector< boost::process::filesystem::path > path = ::boost::this_process::path());
Searches for an executable in path.
filename must be a basename including the file extension. It must not include any directory separators (like a slash). On Windows the file extension may be omitted. The function will then try the various file extensions for executables on Windows to find filename.
Parameters: |
|
||||
Returns: |
the absolute path to the executable filename or an empty string if filename isn't found |