libsigc++
3.6.0
|
Adaptor that binds arguments to the wrapped functor. More...
#include <sigc++/adaptors/bind.h>
Public Member Functions | |
bind_functor (type_trait_take_t< T_functor > func, type_trait_take_t< T_bound >... bound) | |
Constructs a bind_functor object that binds an argument to the passed functor. More... | |
template<typename... T_arg> | |
decltype(auto) | operator() (T_arg &&... arg) |
Invokes the wrapped functor passing on the arguments. More... | |
Public Member Functions inherited from sigc::adapts< T_functor > | |
adapts (const T_functor & functor) | |
Constructs an adaptor that wraps the passed functor. More... | |
Public Attributes | |
std::tuple< bound_argument< T_bound >... > | bound_ |
The arguments bound to the functor. More... | |
Public Attributes inherited from sigc::adapts< T_functor > | |
adaptor_type | functor_ |
Adaptor that is invoked from operator()(). More... | |
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:
-1
for the last argument).
|
inline |
Constructs a bind_functor object that binds an argument to the passed functor.
func | Functor to invoke from operator()(). |
bound | Argument to bind to the functor. |
|
inline |
Invokes the wrapped functor passing on the arguments.
bound_ is passed as the next argument.
arg | Arguments to be passed on to the functor. |
std::tuple<bound_argument<T_bound>...> sigc::bind_functor< I_location, T_functor, T_bound >::bound_ |
The arguments bound to the functor.