template<typename R, typename... Parameters>
struct fc::detail::optionals_callable< R, Parameters >
A wrapper of std::function allowing callers to omit the last several arguments if those arguments are fc::optional types. i.e. given a function taking (int, double, bool, fc::optional<string>, fc::optional<char>), whereas normally the last two arguments must be provided, this template allows them to be omitted. Note that this only applies to trailing optional arguments, i.e. given a callable taking (fc::optional<int>, int, fc::optional<int>), only the last argument can be omitted.
A discussion of how exactly this works is available here: https://github.com/bitshares/bitshares-fc/pull/126#issuecomment-490566060
Definition at line 35 of file api.hpp.