scenario_simulator_v2 C++ API
Functions
openscenario_interpreter::functional Namespace Reference

Functions

template<typename F , typename T >
constexpr decltype(auto) fold_left (F &&, T &&x)
 
template<typename F , typename T , typename U , typename... Ts>
constexpr decltype(auto) fold_left (F &&f, T &&x, U &&y, Ts &&... xs)
 
template<typename F , typename T >
constexpr decltype(auto) fold_right (F &&, T &&x)
 
template<typename F , typename T , typename... Ts>
constexpr decltype(auto) fold_right (F &&f, T &&x, Ts &&... xs)
 
template<typename... Ts>
constexpr auto fold (Ts &&... xs) -> decltype(auto)
 

Function Documentation

◆ fold()

template<typename... Ts>
constexpr auto openscenario_interpreter::functional::fold ( Ts &&...  xs) -> decltype(auto)
constexpr

◆ fold_left() [1/2]

template<typename F , typename T >
constexpr decltype(auto) openscenario_interpreter::functional::fold_left ( F &&  ,
T &&  x 
)
constexpr

◆ fold_left() [2/2]

template<typename F , typename T , typename U , typename... Ts>
constexpr decltype(auto) openscenario_interpreter::functional::fold_left ( F &&  f,
T &&  x,
U &&  y,
Ts &&...  xs 
)
constexpr

◆ fold_right() [1/2]

template<typename F , typename T >
constexpr decltype(auto) openscenario_interpreter::functional::fold_right ( F &&  ,
T &&  x 
)
constexpr

◆ fold_right() [2/2]

template<typename F , typename T , typename... Ts>
constexpr decltype(auto) openscenario_interpreter::functional::fold_right ( F &&  f,
T &&  x,
Ts &&...  xs 
)
constexpr