ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::diplomat::fn_traits< std::function< Ret(Args...)> > Struct Template Reference

#include <diplomat_runtime.hpp>

Public Types

using fn_ptr_t = Ret(Args...)
 
using function_t = std::function<fn_ptr_t>
 
using ret = Ret
 

Public Member Functions

 fn_traits (function_t)
 

Static Public Member Functions

template<typename T>
static T replace (replace_fn_t< T > val)
 
template<typename T>
static replace_fn_t< T > replace_ret (T val)
 
static Ret c_run_callback (const void *cb, replace_fn_t< Args >... args)
 
template<typename T>
static T c_run_callback_diplomat_opaque (const void *cb, replace_fn_t< Args >... args)
 
static void c_delete (const void *cb)
 

Member Typedef Documentation

◆ fn_ptr_t

template<typename Ret, typename... Args>
using icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::fn_ptr_t = Ret(Args...)

◆ function_t

template<typename Ret, typename... Args>
using icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::function_t = std::function<fn_ptr_t>

◆ ret

template<typename Ret, typename... Args>
using icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::ret = Ret

Constructor & Destructor Documentation

◆ fn_traits()

template<typename Ret, typename... Args>
icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::fn_traits ( function_t )
inline

Member Function Documentation

◆ c_delete()

template<typename Ret, typename... Args>
static void icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::c_delete ( const void * cb)
inlinestatic

◆ c_run_callback()

template<typename Ret, typename... Args>
static Ret icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::c_run_callback ( const void * cb,
replace_fn_t< Args >... args )
inlinestatic

◆ c_run_callback_diplomat_opaque()

template<typename Ret, typename... Args>
template<typename T>
static T icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::c_run_callback_diplomat_opaque ( const void * cb,
replace_fn_t< Args >... args )
inlinestatic

◆ replace()

template<typename Ret, typename... Args>
template<typename T>
static T icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::replace ( replace_fn_t< T > val)
inlinestatic

◆ replace_ret()

template<typename Ret, typename... Args>
template<typename T>
static replace_fn_t< T > icu4x::diplomat::fn_traits< std::function< Ret(Args...)> >::replace_ret ( T val)
inlinestatic

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