Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct process_environment

boost::process::v2::process_environment — Initializer for the environment of sub process.

Synopsis

// 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;
};

Description

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 construct/copy/destruct

  1. ( sv);
  2. template<typename Args> ( args);

process_environment public static functions

  1. template<typename Args> 
       
      ( args, 
                cstring_ref >::, 
                :: = );

process_environment public member functions

  1. template<typename Args> 
       
      ( args, 
                cstring_ref >::, 
                :: = );
  2.  ( launcher, 
                        , );

PrevUpHomeNext