boost::capy::io_result<>

Result type for void operations.

Synopsis

Declared in <boost/capy/io_result.hpp>

template<>
struct io_result<>;

Description

Used by operations like connect() that don't return a value beyond success/failure. This specialization is not an aggregate to enable implicit conversion from error_code.

Example

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

Data Members

Name

Description

ec

The error code from the operation.

Non-Member Functions

Name

Description

ready

Create an immediate awaitable for a failed io_result.

ready

Create an immediate awaitable for a successful io_result.

Created with MrDocs