Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2024. The current version is 1.89.0.
Configures an execution context by reading environment variables.
class config_from_env : public execution_context::service_maker
|
Name |
Description |
|---|---|
|
config_from_env [constructor] |
Construct with the default prefix "asio". |
|
Add a concrete service to the specified execution context. |
The environment variable names are formed by concatenating the prefix, section, and key, with underscore as delimiter, and then converting the resulting string to upper case.
boost::asio::io_context my_io_context{ boost::asio::config_from_env{"my_app"}};
Header: boost/asio/config.hpp
Convenience header: boost/asio.hpp