问题
I recently heard new c++ standard features which are:
- std::latch
- std::barrier
I cannot figure it out ,in which situations that they are applicable and useful over one-another.
- If someone can raise an example for how to use each one of them wisely it would be really helpful.
来源:https://stackoverflow.com/questions/48985967/where-can-we-use-stdbarrier-over-stdlatch