Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
This library uses the该库使用的是 [@http://cplusplus.github.io/networking-ts/draft.pdfNetworking Technical Specification], scheduled to become an official part of C++ no sooner than the year 2023. Three implementations exist, with cosmetic differences but otherwise using the same function signatures and type declarations: Boost.Asio, stand-alone Asio, and networking-ts-impl. This table shows how a variable of type `io_context` is declared in each implementation by including the appropriate header and using a suitable namespace alias:网络技术规范],当时预计最早要到 2023 年才有可能成为 C++ 官方标准的一部分。目前已有三个实现版本,它们在接口上有细微差异,但函数签名和类型声明基本相同:分别是 Boost.Asio、独立版 Asio 以及 networking-ts-impl。下表展示了在各个实现中,如何通过引入对应的头文件并使用合适的命名空间别名来声明 `io_context` 类型的变量: