NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
submit_result< T > 模板结构体 参考

任务提交结果 更多...

#include <thread_pool.hpp>

Public 成员函数

NEFORCE_NODISCARD operator bool () const noexcept
 检查提交是否有效

Public 属性

_NEFORCE future< T > future
 任务的future
shared_ptr< _NEFORCE task_infotask_info
 任务信息

详细描述

template<typename T>
struct submit_result< T >

任务提交结果

模板参数
T任务返回值类型

包含任务的future和任务信息,用于跟踪任务执行状态。

在文件 thread_pool.hpp285 行定义.

成员函数说明

◆ operator bool()

template<typename T>
NEFORCE_NODISCARD submit_result< T >::operator bool ( ) const
inlineexplicitnoexcept

检查提交是否有效

返回
有效返回true

在文件 thread_pool.hpp293 行定义.

引用了 future , 以及 task_info.


该结构体的文档由以下文件生成: