C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg::functional Namespace Reference

Classes

struct  recursor
 

Functions

template<typename InputType , typename... FuncTypes>
decltype(auto) operator| (std::tuple< FuncTypes... > const &func, std::vector< InputType > const &input)
 
template<typename InputType , typename... FuncTypes>
decltype(auto) operator| (std::vector< InputType > const &input, std::tuple< FuncTypes... > const &func)
 
template<typename InputType , std::size_t N, typename... FuncTypes>
decltype(auto) operator| (std::tuple< FuncTypes... > const &func, std::array< InputType, N > const &input)
 
template<typename InputType , std::size_t N, typename... FuncTypes>
decltype(auto) operator| (std::array< InputType, N > const &input, std::tuple< FuncTypes... > const &func)
 
template<cgt::tuple_flat_c TupleType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto operator>> (TupleType &&args, FuncType &&func)
 
template<cgt::std_array_flat_c ArrayType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto operator>> (ArrayType &&args, FuncType &&func)
 
template<cgt::span_flat_c SpanType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto operator>> (SpanType &&args, FuncType &&func)
 
template<typename... ArgTypes, typename... FuncTypes>
constexpr auto operator>> (std::tuple< ArgTypes... > const &args, std::tuple< FuncTypes... > const &func)
 
template<typename ArgType , std::size_t N, typename... FuncTypes>
constexpr auto operator>> (std::array< ArgType, N > const &args, std::tuple< FuncTypes... > const &func)
 

Function Documentation

◆ operator>>() [1/5]

template<cgt::std_array_flat_c ArrayType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> ( ArrayType &&  args,
FuncType &&  func 
)
constexpr

Definition at line 141 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator>>() [2/5]

template<cgt::span_flat_c SpanType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> ( SpanType &&  args,
FuncType &&  func 
)
constexpr

Definition at line 149 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator>>() [3/5]

template<typename ArgType , std::size_t N, typename... FuncTypes>
constexpr auto cpg::functional::operator>> ( std::array< ArgType, N > const &  args,
std::tuple< FuncTypes... > const &  func 
)
constexpr

Definition at line 168 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator>>() [4/5]

template<typename... ArgTypes, typename... FuncTypes>
constexpr auto cpg::functional::operator>> ( std::tuple< ArgTypes... > const &  args,
std::tuple< FuncTypes... > const &  func 
)
constexpr

Definition at line 157 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator>>() [5/5]

template<cgt::tuple_flat_c TupleType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> ( TupleType &&  args,
FuncType &&  func 
)
constexpr

Definition at line 133 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator|() [1/4]

template<typename InputType , std::size_t N, typename... FuncTypes>
decltype(auto) cpg::functional::operator| ( std::array< InputType, N > const &  input,
std::tuple< FuncTypes... > const &  func 
)

Definition at line 110 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator|() [2/4]

template<typename InputType , std::size_t N, typename... FuncTypes>
decltype(auto) cpg::functional::operator| ( std::tuple< FuncTypes... > const &  func,
std::array< InputType, N > const &  input 
)

Definition at line 88 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator|() [3/4]

template<typename InputType , typename... FuncTypes>
decltype(auto) cpg::functional::operator| ( std::tuple< FuncTypes... > const &  func,
std::vector< InputType > const &  input 
)

Definition at line 39 of file cpg_functional.hpp.

Here is the call graph for this function:

◆ operator|() [4/4]

template<typename InputType , typename... FuncTypes>
decltype(auto) cpg::functional::operator| ( std::vector< InputType > const &  input,
std::tuple< FuncTypes... > const &  func 
)

Definition at line 63 of file cpg_functional.hpp.

Here is the call graph for this function: