Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::functional::PipeStrategy Struct Reference

#include <Pipe.hpp>

Public Member Functions

template<class Fn , class... Args>
requires std::invocable<Fn, Args...>
constexpr decltype(auto) operator() (std::tuple< Fn > &&fn, Args &&... args) const noexcept(std::is_nothrow_invocable_v< Fn, Args... >)
 
template<concepts::tuple Fns, class... Args>
requires std::invocable<type_list::front_t<Fns>, Args...> && std::invocable< PipeStrategy, type_list::pop_front_t<Fns>, std::invoke_result_t<type_list::front_t<Fns>, Args...>>
constexpr decltype(auto) operator() (Fns fns, Args &&... args) const noexcept(std::is_nothrow_invocable_v< type_list::front_t< Fns >, Args... > &&std::is_nothrow_invocable_v< PipeStrategy, type_list::pop_front_t< Fns >, std::invoke_result_t< type_list::front_t< Fns >, Args... > >)
 

Member Function Documentation

◆ operator()() [1/2]

template<concepts::tuple Fns, class... Args>
requires std::invocable<type_list::front_t<Fns>, Args...> && std::invocable< PipeStrategy, type_list::pop_front_t<Fns>, std::invoke_result_t<type_list::front_t<Fns>, Args...>>
constexpr decltype(auto) sl::functional::PipeStrategy::operator() ( Fns  fns,
Args &&...  args 
) const
inlineconstexprnoexcept

◆ operator()() [2/2]

template<class Fn , class... Args>
requires std::invocable<Fn, Args...>
constexpr decltype(auto) sl::functional::PipeStrategy::operator() ( std::tuple< Fn > &&  fn,
Args &&...  args 
) const
inlineconstexprnoexcept

The documentation for this struct was generated from the following file: