oa::min

Scalar two-argument min/max (the oa::min / oa::max replacement — distinct from minElement/maxElement which scan a range). Returns by const & like std, so ties return the first argument.

Function Documentation

const T & oa::min( const T & inA, const T & inB ) const T & oa::min( const T & inA, const T & inB, Cmp inCmp )
Scalar two-argument min/max (the oa::min / oa::max replacement — distinct from minElement/maxElement which scan a range). Returns by const & like std, so ties return the first argument.

Parameters

inA
const T &

inB
const T &

Returns

const T &

The declared return value.