Contents

SushiEngine::Core

fixed_tile_fold

template <typename T, typename Read, typename Op>
T fixed_tile_fold(std::size_t count, T identity, Read read, Op op) noexcept

Parameters

NameTypeDescription
countstd::size_t
identityT
readRead

Returns element i for i in [0, count).

opOp

Combines two partials; each tile is seeded from its first element.

Returns

T

The tree's root, or identity when count is zero.

Description

Folds count elements with op in SushiRuntime's fixed 256-tile tree, on the stack.