libsigc++ 3.6.0
Public Member Functions | Public Attributes | List of all members
sigc::bind_functor<-1, T_functor, T_type... > Struct Template Reference

Adaptor that binds argument(s) to the wrapped functor. More...

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

Inheritance diagram for sigc::bind_functor<-1, T_functor, T_type... >:
Inheritance graph
[legend]

Public Member Functions

 bind_functor (type_trait_take_t< T_functor > func, type_trait_take_t< T_type >... bound)
 Constructs a bind_functor object that binds an argument to the passed functor.
 
template<typename... T_arg>
decltype(autooperator() (T_arg &&... arg)
 Invokes the wrapped functor passing on the arguments.
 
- Public Member Functions inherited from sigc::adapts< T_functor >
 adapts (const T_functor &functor)
 Constructs an adaptor that wraps the passed functor.
 

Public Attributes

std::tuple< bound_argument< T_type >... > bound_
 The argument bound to the functor.
 
- Public Attributes inherited from sigc::adapts< T_functor >
adaptor_type functor_
 Adaptor that is invoked from operator()().
 

Detailed Description

template <typename T_functor, typename... T_type>
struct sigc::bind_functor<-1, T_functor, T_type... >

Adaptor that binds argument(s) to the wrapped functor.

This template specialization fixes the last argument(s) of the wrapped functor.

Constructor & Destructor Documentation

◆ bind_functor()

template <typename T_functor , typename... T_type>
sigc::bind_functor<-1, T_functor, T_type... >::bind_functor ( type_trait_take_t< T_functor >  func,
type_trait_take_t< T_type >...  bound 
)
inline

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

Parameters
funcFunctor to invoke from operator()().
boundArguments to bind to the functor.

Member Function Documentation

◆ operator()()

template <typename T_functor , typename... T_type>
template <typename... T_arg>
decltype(auto) sigc::bind_functor<-1, T_functor, T_type... >::operator() ( T_arg &&...  arg)
inline

Invokes the wrapped functor passing on the arguments.

bound_ is passed as the next argument.

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

Member Data Documentation

◆ bound_

template <typename T_functor , typename... T_type>
std::tuple<bound_argument<T_type>...> sigc::bind_functor<-1, T_functor, T_type... >::bound_

The argument bound to the functor.