Skip to content

strata::Any

Part of Reductions.

struct strata::Any;

Whether any value of a mask is true.

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

Members

accumulator

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

What the reducer keeps while values come in.

identity

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

False: the result of no values.

accumulate

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

acc or one value.

combine

constexpr bool combine(bool lhs, bool rhs) const

Either partial result true.

finalize

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

The accumulator itself, whatever the count.