Warning, file /include/boost/process/v1/detail/posix/env_init.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_PROCESS_DETAIL_POSIX_ENV_INIT_HPP_
0008 #define BOOST_PROCESS_DETAIL_POSIX_ENV_INIT_HPP_
0009
0010
0011 #include <boost/process/v1/detail/config.hpp>
0012 #include <boost/process/v1/detail/posix/handler.hpp>
0013 #include <boost/process/v1/environment.hpp>
0014
0015 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail { namespace posix {
0016
0017 template<typename Char>
0018 struct env_init;
0019
0020 template<>
0021 struct env_init<char> : handler_base_ext
0022 {
0023 boost::process::v1::environment env;
0024
0025 env_init(boost::process::v1::environment && env) : env(std::move(env)) {};
0026 env_init(const boost::process::v1::environment & env) : env(env) {};
0027
0028
0029 template <class Executor>
0030 void on_setup(Executor &exec) const
0031 {
0032 exec.env = env._env_impl;
0033 }
0034
0035 };
0036
0037 }}}}}
0038
0039
0040
0041 #endif