"Fossies" - the Fresh Open Source Software Archive

Member "libsigc++-3.0.0/docs/docs/reference/html/structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type_8_8_8_01_4.html" (5 Sep 2019, 14566 Bytes) of package /linux/misc/libsigc++-3.0.0.tar.xz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

libsigc++  3.0.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. 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_type >... > bound_
 The argument bound to the functor. More...
 
- Public Attributes inherited from sigc::adapts< T_functor >
adaptor_type functor_
 Adaptor that is invoked from operator()(). More...
 

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

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

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

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.