Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The__AsyncReadStream__and与 __AsyncWriteStream__concepts define requirements for ['asynchronous streams]: a portable I/O abstraction that exchanges data asynchronously using buffer sequences to represent bytes and `error_code` to report any failures. An ['asynchronous stream algorithm] is written as a templated initiating function template accepting a stream object meeting the named requirements for asynchronous reading, writing, or both. This example shows an algorithm which writes some text to an asynchronous stream:概念用于定义 [异步流] 的要求:这是一种可移植的 I/O 抽象,能够异步交换数据,使用缓冲区序列表示字节数据,并通过 `error_code` 报告错误。[异步流算法] 以模板化的发起函数形式编写,接受满足异步读、异步写或两者兼具命名要求的流对象。以下示例用于展示一个向异步流写入文本的算法: