ONE - On-device Neural Engine
Loading...
Searching...
No Matches
fipe.h File Reference
#include <functional>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  fipe
 

Functions

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))
 

Function Documentation

◆ 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}