boost::asio::config_from_string
Configures an execution context by reading variables from a string.
Synopsis
Declared in <boost/asio/config.hpp>
class config_from_string
: public execution_context::service_maker
Member Functions
Name |
Description |
|
Constructors |
|
|
Description
Each variable must be on a line of its own, and of the form:
or, if an optional prefix is specified:
Blank lines and lines starting with are ignored. It is also permitted to include a comment starting with after the value.
Example
boost::asio::io_context my_io_context{
boost::asio::config_from_string{
"scheduler.concurrency_hint=10\n"
"scheduler.locking=1"}};
Created with MrDocs