- latch[meta header]
- std[meta namespace]
- latch[meta class]
- function[meta id-type]
- cpp20[meta cpp]
static constexpr ptrdiff_t max() noexcept;
- ptrdiff_t[link /reference/cstddef/ptrdiff_t.md]
処理系がサポートするカウンタ最大値
処理系がサポートするカウンタの最大値を返す。
投げない
#include <iostream>
#include <latch>
int main()
{
std::cout << std::latch::max() << std::endl;
}
- max()[color ff0000]
9223372036854775807
- C++20
- Clang: 11.0 [mark verified]
- GCC: ??
- ICC: ??
- Visual C++: ??