Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

io_context::destroy - Boost C++ 函数库
PrevUpHomeNext

继承自 execution_context。

销毁上下文中所有服务。

void destroy();

该函数实现如下:

  • 对于 execution_context 设置中的每个服务对象 svc,按照服务对象生命周期开始的逆序,执行 delete static_cast<execution_context::service*>(svc)

PrevUpHomeNext