Uniform callable invoke from arguments or tuple of arguments. More...
#include <boost/tuple/tuple.hpp>#include <tuple>#include <functional>Go to the source code of this file.
Namespaces | |
| Scine::Molassembler | |
| Central library namespace. | |
| Scine::Molassembler::Temple | |
| Template shorthands, optimizers and constexpr data types. | |
Functions | |
| template<typename HT , typename TT , typename Function > | |
| auto | Scine::Molassembler::Temple::invoke (Function &&function, const boost::tuples::cons< HT, TT > &tuple) |
| Invokes a function with all values in a given boost tuple. | |
| template<typename Function , typename TupleType , std::enable_if_t< Detail::isTupleCallable< Function, TupleType >::value, int > = 0> | |
| auto | Scine::Molassembler::Temple::invoke (Function &&function, const TupleType &tuple) |
| If a callable can be called by unpacking a supplied tuple of arguments, the tuple is called. More... | |
| template<typename Fn , typename... Args, std::enable_if_t< !(sizeof...(Args)==1 &&Detail::isTupleCallable< Fn, Args...>::value)&&std::is_member_pointer< std::decay_t< Fn >>{}, int > = 0> | |
| decltype(auto) constexpr | Scine::Molassembler::Temple::invoke (Fn &&f, Args &&...args) noexcept(noexcept(std::mem_fn(f)(std::forward< Args >(args)...))) |
| If a callable is a member function pointer, invoke it with forwarded arguments. More... | |
| template<typename Functor > | |
| auto | Scine::Molassembler::Temple::make_tuple_callable (Functor &&functor) |
Uniform callable invoke from arguments or tuple of arguments.