libsigc++  2.99.2
Public Types | Public Member Functions | List of all members
sigc::retype_functor< T_functor, T_type > Struct Template Reference

Adaptor that performs C-style casts on the parameters passed on to the functor. More...

#include <sigc++/adaptors/retype.h>

Inheritance diagram for sigc::retype_functor< T_functor, T_type >:
Inheritance graph
[legend]

Public Types

using adaptor_type = typename adapts< T_functor >::adaptor_type
 
using result_type = typename adapts< T_functor >::result_type
 
- Public Types inherited from sigc::adapts< T_functor >
using adaptor_type = typename adaptor_trait< T_functor >::adaptor_type
 
using result_type = typename adaptor_trait< T_functor >::result_type
 

Public Member Functions

 retype_functor (type_trait_take_t< T_functor > _A_functor)
 Constructs a retype_functor object that performs C-style casts on the parameters passed on to the functor. More...
 
template<class... T_arg>
decltype(auto) operator() (T_arg..._A_a)
 
- Public Member Functions inherited from sigc::adapts< T_functor >
 adapts (const T_functor& _A_functor)
 Constructs an adaptor that wraps the passed functor. More...
 

Additional Inherited Members

- Public Attributes inherited from sigc::adapts< T_functor >
adaptor_type functor_
 Adaptor that is invoked from operator()(). More...
 

Detailed Description

template<class T_functor, class... T_type>
struct sigc::retype_functor< T_functor, T_type >

Adaptor that performs C-style casts on the parameters passed on to the functor.

Use the convenience function sigc::retype() to create an instance of retype_functor.

The following template arguments are used:

Member Typedef Documentation

template <class T_functor , class... T_type>
using sigc::retype_functor< T_functor, T_type >::adaptor_type = typename adapts<T_functor>::adaptor_type
template <class T_functor , class... T_type>
using sigc::retype_functor< T_functor, T_type >::result_type = typename adapts<T_functor>::result_type

Constructor & Destructor Documentation

template <class T_functor , class... T_type>
sigc::retype_functor< T_functor, T_type >::retype_functor ( type_trait_take_t< T_functor >  _A_functor)
inlineexplicit

Constructs a retype_functor object that performs C-style casts on the parameters passed on to the functor.

Parameters
_A_functorFunctor to invoke from operator()().

Member Function Documentation

template <class T_functor , class... T_type>
template <class... T_arg>
decltype(auto) sigc::retype_functor< T_functor, T_type >::operator() ( T_arg...  _A_a)
inline