sigc::retype() alters a sigc::pointer_functor, a sigc::mem_functor or a sigc::slot in that it makes C-style casts to the functor's parameter types of all parameters passed through operator()().  
More...
sigc::retype() alters a sigc::pointer_functor, a sigc::mem_functor or a sigc::slot in that it makes C-style casts to the functor's parameter types of all parameters passed through operator()(). 
Use this adaptor for inline conversion between numeric or other simple types. 
- Example:
- 
- decltype(auto) bind(const T_functor &func, T_bound... b) - Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor. - Definition bind.h:266 
- decltype(auto) ptr_fun(T_return(*func)(T_args...)) - Creates a functor of type sigc::pointer_functor which wraps an existing non-member function. - Definition ptr_fun.h:109 
- decltype(auto) retype(const T_functor< T_func, T_arg... > &functor) - Creates an adaptor of type sigc::retype_functor which performs C-style casts on the parameters passed... - Definition retype.h:131 
 
The functor that sigc::retype() returns can be passed directly into sigc::signal::connect() or sigc::signal::connect_first().
- Example:
This adaptor builds an exception in that it only works on sigc::pointer_functor, sigc::mem_functor and sigc::slot because it needs sophisticated information about the parameter types that cannot be deduced from arbitrary functor types.
sigc::retype_return() alters the return type of an arbitrary functor. Like in sigc::retype() a C-style cast is performed. Usage sigc::retype_return() is not restricted to libsigc++ functor types but you need to specify the new return type as a template parameter.
- Example:
- 
- constexpr _Bind_helper< __is_socketlike< _Func >::value, _Func, _BoundArgs... >::type bind(_Func &&__f, _BoundArgs &&... __args) 
 
◆ retype() [1/2]
Creates an adaptor of type sigc::retype_functor which performs C-style casts on the parameters passed on to the functor. 
- Parameters
- 
  
    | functor | Functor that should be wrapped. |  
 
- Returns
- Adaptor that executes functor performing C-style casts on the paramters passed on. 
 
 
◆ retype() [2/2]
Creates an adaptor of type sigc::retype_functor which performs C-style casts on the parameters passed on to the functor. 
- Parameters
- 
  
    | functor | Functor that should be wrapped. |  
 
- Returns
- Adaptor that executes functor performing C-style casts on the paramters passed on. 
 
 
◆ retype_return()
Creates an adaptor of type sigc::retype_return_functor which performs a C-style cast on the return value of the passed functor. 
The template argument T_return specifies the target type of the cast.
- Parameters
- 
  
    | functor | Functor that should be wrapped. |  
 
- Returns
- Adaptor that executes functor performing a C-style cast on the return value.