#include <functional>
#include <utility>
Go to the source code of this file.
|
template<typename Ret , typename Arg > |
std::function< Ret(Arg)> | fipe::wrap (Ret(*p)(Arg)) |
| Convert a function pointer as a callable std::function.
|
|
template<typename T , typename Callable > |
auto | operator| (T &&v, Callable &&f) -> decltype(f(v)) |
|
◆ operator|()
template<typename T , typename Callable >
auto operator| |
( |
T && |
v, |
|
|
Callable && |
f |
|
) |
| -> decltype(f(v))
|
Definition at line 35 of file fipe.h.
36{
37 return std::forward<Callable>(f)(v);
38}