Contents

struct

SushiRuntime::Minimum

template <typename T>

Keeps the smaller of two values; identity is the largest T.

Declared in
include/SushiRuntime/api/vocabulary/combine.hpp

Template parameters

T

Element type being reduced; must have a numeric_limits.

Public member functions

T operator()(const T &a, const T &b) const

Combines two values by keeping the smaller.

Parameters

a

Left operand — the accumulator in a fold.

b

Right operand — the next element.

Returns

b when it compares less than a, else a.

Static public member functions

static constexpr T identity()

The value a minimum over no elements produces.

Returns

The largest representable T, so any element wins against it.