Simple-Vector v1.3.0
Functional

Functions

template<class TTargetType , std::copy_constructible TFunc>
constexpr auto sl::vec::fn::cast_invoke_result (TFunc func) noexcept
 Factory function creating a wrapper function object, which invokes the provided function object and casts the result into the given type. More...
 

Detailed Description

Function Documentation

◆ cast_invoke_result()

template<class TTargetType , std::copy_constructible TFunc>
constexpr auto sl::vec::fn::cast_invoke_result ( TFunc  func)
constexprnoexcept

Factory function creating a wrapper function object, which invokes the provided function object and casts the result into the given type.

Template Parameters
TTargetTypeType to cast
TFuncType of function object
Parameters
funcThe wrapped function object
Returns
function object