# std::barrier<CompletionFunction>::max

> C++ Atlas: `cppatlas.com/w/cpp/thread/barrier/max` | Source: https://en.cppreference.com/w/cpp/thread/barrier/max | Domain: Concurrency support | Standards: C++20

Returns the maximum value of the expected count supported by the implementation.

## Official Specification Summary (cppreference)

```cpp
static constexpr std::ptrdiff_t max() noexcept; // (since C++20)
```

Returns the maximum value of the expected count supported by the implementation.

### Parameters

(none)

### Return value

The maximum value of the expected count supported by the implementation.

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/barrier/max (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.