6#ifndef SIMPLE_VECTOR_FUNCTIONAL_HPP
7#define SIMPLE_VECTOR_FUNCTIONAL_HPP
19 template <
class TTargetType, std::copy_constructible TFunc>
22 template <
class... TArgs>
25 return static_cast<TTargetType
>(std::invoke(
func, std::forward<TArgs>(args)...));
46 template <
class TTargetType, std::copy_constructible TFunc>
constexpr auto cast_invoke_result(TFunc func) noexcept
Factory function creating a wrapper function object, which invokes the provided function object and c...
Definition: Functional.hpp:47
Definition: Functional.hpp:18
Definition: Functional.hpp:33
Definition: Functional.hpp:21
TFunc func
Definition: Functional.hpp:28
constexpr TTargetType operator()(TArgs &&... args)
Definition: Functional.hpp:23