P1865R1

Add max() to latch and barrier