boost::corosio::io_result<>

Result type for void operations.

Synopsis

template<>
struct io_result<>;

Description

Used by operations like connect() that don't return a value beyond success/failure.

Example

auto [ec] = co_await s.connect(ep);
if (ec) { ... }

// Or with exceptions:
(co_await s.connect(ep)).value();

Member Functions

Name

Description

get

value

Throw if an error occurred.

Data Members

Name

Description

ec

The error code from the operation.

Created with MrDocs