...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::v2::environment::find_executable — Find the executable name
in an environment-like type.
// In header: <boost/process/v2/environment.hpp> template<typename Environment = current_view> boost::process::v2::filesystem::path find_executable(boost::process::v2::filesystem::path name, Environment && env = current());
The environment type passed in must be a range with value T that fulfills the following requirements:
For T value
std::get<0>(value) must return a type comparable to
.key_view
std::get<1>(value) must return a type convertible to
.value_view
Parameters: |
|
||
Returns: |
A filesystem::path to the executable or an empty path if it cannot be found. |