ONE - On-device Neural Engine
Loading...
Searching...
No Matches
fipe Namespace Reference

Functions

template<typename Ret , typename Arg >
std::function< Ret(Arg)> wrap (Ret(*p)(Arg))
 Convert a function pointer as a callable std::function.
 

Function Documentation

◆ wrap()

template<typename Ret , typename Arg >
std::function< Ret(Arg)> fipe::wrap ( Ret(*)(Arg)  p)

Convert a function pointer as a callable std::function.

NOTE "fipe" works only for unary functions.

Definition at line 31 of file fipe.h.

31{ return p; }