boost::asio序列14:基本输入对象
发布时间
阅读量:
阅读量
建立与io_context对象的关联,实质上是获取其对应的service对象,而该service对象负责执行具体的I/O操作以及相关Handler的分发工作。
// Type trait used to determine whether a service supports move.
template <typename IoObjectService>
class service_has_move
{
private:
typedef IoObjectService service_type;
typedef typename service_type::implementation_type implementation_type;
template <typename T, typename U>
static auto asio_service_has_move_eval(T* t, U* u)
-> decltype(t->move_construct(*u, *u), char());
static char (&asio_service_has_m
全部评论 (0)
还没有任何评论哟~
