Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::transform Namespace Reference

Functions

template<template< typename, typename... > typename Cont, typename InElem , typename... Args, typename F , typename OutElem = typename std::invoke_result<F, InElem const&>::type>
Cont< OutElem > map (Cont< InElem, Args... > const &in, F &&op)
 
template<std::size_t SIZE, typename InElem , typename F , typename OutElem = typename std::invoke_result<F, InElem const&>::type>
std::array< OutElem, SIZE > map (std::array< InElem, SIZE > const &in, F &&op)
 

Function Documentation

◆ map() [1/2]

template<template< typename, typename... > typename Cont, typename InElem , typename... Args, typename F , typename OutElem = typename std::invoke_result<F, InElem const&>::type>
Cont< OutElem > bb::transform::map ( Cont< InElem, Args... > const &  in,
F &&  op 
)

Definition at line 15 of file map.hpp.

◆ map() [2/2]

template<std::size_t SIZE, typename InElem , typename F , typename OutElem = typename std::invoke_result<F, InElem const&>::type>
std::array< OutElem, SIZE > bb::transform::map ( std::array< InElem, SIZE > const &  in,
F &&  op 
)

Definition at line 29 of file map.hpp.