目录

hardware_concurrency [static]

描述 (Description)

它返回硬件线程上下文的数量。

声明 (Declaration)

以下是std :: thread :: native_handle函数的声明。

static unsigned hardware_concurrency() noexcept;

C++11

static unsigned hardware_concurrency() noexcept;

参数 (Parameters)

没有

返回值 (Return Value)

它返回硬件线程上下文的数量。

异常 (Exceptions)

No-throw guarantee - 永不抛出异常。

数据竞争 (Data races)

未指定。

↑回到顶部↑
WIKI教程 @2018