![]() |
Home | Libraries | People | FAQ | More |
boost::process::v2::process_environment — Initializer for the environment of sub process.
// In header: <boost/process/v2/environment.hpp> struct process_environment { // construct/copy/destruct (); template<typename Args> (); // public static functions template<typename Args> (, cstring_ref >::, :: = ); // public member functions template<typename Args> (, cstring_ref >::, :: = ); (, , ); // public data members environment::key_value_pair > env_buffer; env; };
This will set the environment in a subprocess:
The environment initializer will persist it's state, so that it can be used multiple times. Do however note the the Operating System is allowed to modify the internal state.
process_environment
public static functionstemplate<typename Args> ( args, cstring_ref >::, :: = );
process_environment
public member functionstemplate<typename Args> ( args, cstring_ref >::, :: = );
( launcher, , );