Turi Create
4.0
|
#include <model_server/lib/toolkit_function_wrapper_impl.hpp>
Provides a wrapper around the return type of a function call. For instance:
The key reason for this struct is to handle the void return case where the result type of the function is void. This struct specializes that case by making ret_value an integer which is 0 prior to calling the function, and 1 after successful calling of the function.
i.e.
Note that the function must take no arguments. If there are arguments, it can be wrapped in a lambda. For instance:
Definition at line 112 of file toolkit_function_wrapper_impl.hpp.