C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg_functional.hpp File Reference
#include "cpg_types.hpp"
#include "cpg_iterator.hpp"
Include dependency graph for cpg_functional.hpp:

Go to the source code of this file.

Classes

struct  cpg::functional::recursor< T >
 

Namespaces

namespace  cpg
 Includes subnamespace conversion.
 
namespace  cpg::functional
 

Macros

#define NOMINMAX
 

Functions

template<typename InputType , typename... FuncTypes>
decltype(auto) cpg::functional::operator| (std::tuple< FuncTypes... > const &func, std::vector< InputType > const &input)
 
template<typename InputType , typename... FuncTypes>
decltype(auto) cpg::functional::operator| (std::vector< InputType > const &input, std::tuple< FuncTypes... > const &func)
 
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)
 
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)
 
template<cgt::tuple_flat_c TupleType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> (TupleType &&args, FuncType &&func)
 
template<cgt::std_array_flat_c ArrayType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> (ArrayType &&args, FuncType &&func)
 
template<cgt::span_flat_c SpanType, typename FuncType >
requires requires{ std::apply(func, args); }
constexpr auto cpg::functional::operator>> (SpanType &&args, FuncType &&func)
 
template<typename... ArgTypes, typename... FuncTypes>
constexpr auto cpg::functional::operator>> (std::tuple< ArgTypes... > const &args, std::tuple< FuncTypes... > const &func)
 
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)
 

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Definition at line 10 of file cpg_functional.hpp.