Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
A ['synchronous stream algorithm] is written as a function template accepting a stream object meeting the named requirements for synchronous reading, writing, or both. This example shows an algorithm which writes text and uses exceptions to indicate errors:同步流算法用于编写为函数模板,接受满足同步读写(或两者兼具)命名要求的流对象。以下示例用于展示一个写入文本并使用异常指示错误的算法: