![]() |
Home | Libraries | People | FAQ | More |
boost::process::basic_environment — Type definition to hold a seperate environment.
// In header: <boost/process/environment.hpp> template<typename Char> class basic_environment { public: // types typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; // member classes/structs/unions template<typename Char, typename Environment> struct const_entry_type { // types typedef ; typedef ; typedef ; typedef ; typedef ; // construct/copy/destruct () = ; // public member functions () ; () = ; () ; }; template<typename Char, typename Environment> struct entry_type { // types typedef ; typedef ; typedef ; typedef ; typedef ; // construct/copy/destruct () = ; (); (); // public member functions () ; () = ; () ; (); (); (); (); (); }; // construct/copy/destruct (); (basic_environment &); (basic_environment &&); basic_environment & (basic_environment &); basic_environment & (basic_environment &&); // public member functions (); () ; () ; (); () ; () ; (); () ; () ; (); (, ); (); () ; (); entry_type (); const_entry_type () ; entry_type (); };
Template representation of environments. It takes a character type (char
or wchar_t
) as template parameter to implement the environment
basic_environment
public
construct/copy/destruct();Default constructor.
(basic_environment &);Copy constructor.
(basic_environment &&);Move constructor.
basic_environment & (basic_environment &);Copy assignment.
basic_environment & (basic_environment &&);Move assignment.
basic_environment
public member functions();Returns an iterator to the beginning.
() ;Returns an iterator to the beginning.
() ;Returns an iterator to the beginning.
();Returns an iterator to the end.
() ;Returns an iterator to the end.
() ;Returns an iterator to the end.
( key);Find a variable by its name.
( key) ;Find a variable by its name.
( st) ;Number of variables.
( id);
Erase variable by id.
( id, value);Emplace an environment variable.
();Check if environment has entries.
() ;Get the number of variables.
();Clear the environment.
![]() |
Note |
---|---|
Use with care, passed environment cannot be empty. |
entry_type ( key);Get the entry with the key. Throws if it does not exist.
const_entry_type ( key) ;Get the entry with the key. Throws if it does not exist.
entry_type ( key);Get the entry with the given key. It creates the entry if it doesn't exist.