Skip to content

strata::All

Part of Reductions.

struct strata::All;

Whether every value of a mask is true.

Of bool only: of a mask, not of anything that converts to one. Of no values it is true.

Members

accumulator

template <std::same_as< bool > T>
using strata::All::accumulator = bool

What the reducer keeps while values come in.

identity

template <std::same_as<bool> T>
constexpr bool identity() const

True: the result of no values.

accumulate

constexpr bool accumulate(bool acc, std::same_as<bool> auto value) const

acc and one value.

combine

constexpr bool combine(bool lhs, bool rhs) const

Both partial results true.

finalize

constexpr bool finalize(bool acc, std::size_t) const

The accumulator itself, whatever the count.