class template
std::barrier
- Header
<barrier>- Draft
- [barrier.class]
- Scope
std- cppreference
- std::barrier
Synopsis
template<class CompletionFunction = /* implementation-defined */>
class barrier;Member types
| Name | Declaration |
|---|---|
arrival_tokenclass · nested | class arrival_token |
Member functions
| Name | Declaration |
|---|---|
barrierconstructor · 2 overloads | barrier(const barrier& other) +1 more |
~barrierdestructor | ~barrier() |
operator=operator | barrier& operator=(const barrier& other) |
arrivemember function | arrival_token arrive(ptrdiff_t update) |
arrive_and_dropmember function | void arrive_and_drop() |
arrive_and_waitmember function | void arrive_and_wait() |
waitmember function | void wait(arrival_token&& arrival) const |
Static member functions
| Name | Declaration |
|---|---|
maxstatic member function | ptrdiff_t max() |