BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Static Public Member Functions | List of all members
fc::identity_member_with_optionals Struct Reference

#include <api.hpp>

Static Public Member Functions

template<typename R , typename C , typename P , typename... Args>
static detail::optionals_callable< R, Args... > functor (P &&p, R(C::*mem_func)(Args...))
 
template<typename R , typename C , typename P , typename... Args>
static detail::optionals_callable< R, Args... > functor (P &&p, R(C::*mem_func)(Args...) const )
 

Detailed Description

Used as the Transform template parameter for APIs, this type has two main purposes: first, it reads the argument list and return type of a method into template parameters; and second, it uses those types in conjunction with the optionals_callable template above to create a function pointer which supports optional arguments.

Definition at line 94 of file api.hpp.

Member Function Documentation

template<typename R , typename C , typename P , typename... Args>
static detail::optionals_callable<R, Args...> fc::identity_member_with_optionals::functor ( P &&  p,
R(C::*)(Args...)  mem_func 
)
static
template<typename R , typename C , typename P , typename... Args>
static detail::optionals_callable<R, Args...> fc::identity_member_with_optionals::functor ( P &&  p,
R(C::*)(Args...) const  mem_func 
)
static

The documentation for this struct was generated from the following file: