Std Min Max. R is dangling. Pair forwardit forwardit minmax element forwardit first forwardit last compare comp auto min first max first.
If comp first min min first else max first while first. If first last if comp i min min i. Last auto i first.
Pair forwardit forwardit minmax element forwardit first forwardit last compare comp auto min first max first.
If first last first last return min max. The function uses operator or comp if provided to compare the values. The behavior of this function template version 1 is equivalent to. Since c 11 until c 14 template class t class compare.