Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
constexpr_utils.hpp File Reference
#include <cstddef>
#include <tuple>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::detail
 

Functions

template<size_t Min, size_t Max, size_t Inc>
constexpr auto bb::detail::make_index_range ()
 Create an index sequence from Min to Max (not included) with an increment of Inc.
 
template<size_t Start, size_t End, size_t Inc, class F >
constexpr void bb::constexpr_for (F &&f)
 Implements a loop using a compile-time iterator. Requires c++20. Implementation (and description) from https://artificial-mind.net/blog/2020/10/31/constexpr-for.