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

Base Classes

Name

Description

execution_context::service_maker

Base class for all execution context service makers.

Member Functions

Name

Description

config_from_string [constructor]

Constructors

make [virtual]

make overloads

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