boost::process::v2::environment::set — Set an environment variable for the current process.
// In header: <boost/process/v2/environment.hpp> void set(const key & k, value_view vw, error_code & ec);
Disambiguating.
Throwing.