Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
container.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 

Functions

template<typename C >
C bb::slice (C const &container, size_t start)
 
template<typename C >
C bb::slice (C const &container, size_t start, size_t end)
 
template<typename C >
C bb::join (std::initializer_list< C > to_join)
 
std::string bb::join (std::vector< std::string > const &to_join, std::string const &with=",")
 
template<template< typename, typename... > typename Cont, typename InnerCont , typename... Args>
InnerCont bb::flatten (Cont< InnerCont, Args... > const &in)
 
template<typename T >
int64_t bb::index_of (std::vector< T > const &vec, T const &item)
 
template<template< typename, typename... > typename Cont, typename Inner , typename... Args>
Inner bb::sum (Cont< Inner, Args... > const &in)
 
template<template< typename, typename... > typename Cont, typename Left , typename Right , typename... Args>
std::pair< Left, Right > bb::sum_pairs (Cont< std::pair< Left, Right >, Args... > const &in)