Block the calling thread until the internal count of the std::experimental::latch
is zero.
void wait() const;
If the internal count of *this
is zero returns immediately.
Otherwise blocks until a call to std::experimental::latch::count_down
or std::experimental::latch::count_down_and_wait
reduces
the internal count to zero.
#include <experimental/latch>