libsigc++  2.99.1
Public Types | Public Member Functions | List of all members
sigc::bind_functor< I_location, T_functor, T_bound > Struct Template Reference

Adaptor that binds arguments to the wrapped functor. More...

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

Inheritance diagram for sigc::bind_functor< I_location, T_functor, T_bound >:
Inheritance graph
[legend]

Public Types

using adaptor_type = typename adapts< T_functor >::adaptor_type
 
using result_type = typename adaptor_type::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

 bind_functor (type_trait_take_t< T_functor > _A_func, type_trait_take_t< T_bound >..._A_bound)
 Constructs a bind_functor object that binds an argument to the passed functor. More...
 
template<class... T_arg>
decltype(auto) operator() (T_arg&&..._A_arg)
 Invokes the wrapped functor passing on the arguments. More...
 
- 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<int I_location, class T_functor, class... T_bound>
struct sigc::bind_functor< I_location, T_functor, T_bound >

Adaptor that binds arguments to the wrapped functor.

Use the convenience function sigc::bind() to create an instance of sigc::bind_functor.

The following template arguments are used:

Member Typedef Documentation

template <int I_location, class T_functor , class... T_bound>
using sigc::bind_functor< I_location, T_functor, T_bound >::adaptor_type = typename adapts<T_functor>::adaptor_type
template <int I_location, class T_functor , class... T_bound>
using sigc::bind_functor< I_location, T_functor, T_bound >::result_type = typename adaptor_type::result_type

Constructor & Destructor Documentation

template <int I_location, class T_functor , class... T_bound>
sigc::bind_functor< I_location, T_functor, T_bound >::bind_functor ( type_trait_take_t< T_functor >  _A_func,
type_trait_take_t< T_bound >...  _A_bound 
)
inline

Constructs a bind_functor object that binds an argument to the passed functor.

Parameters
_A_funcFunctor to invoke from operator()().
_A_boundArgument to bind to the functor.

Member Function Documentation

template <int I_location, class T_functor , class... T_bound>
template <class... T_arg>
decltype(auto) sigc::bind_functor< I_location, T_functor, T_bound >::operator() ( T_arg &&...  _A_arg)
inline

Invokes the wrapped functor passing on the arguments.

bound_ is passed as the next argument.

Parameters
_A_argArguments to be passed on to the functor.
Returns
The return value of the functor invocation.