|
libsigc++
2.99.4
|
Adaptor that fixes the return value of the wrapped functor. More...
#include <sigc++/adaptors/bind_return.h>

Public Types | |
| using | result_type = typename unwrap_reference< T_return >::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_return_functor (type_trait_take_t< T_functor > _A_functor, type_trait_take_t< T_return > _A_ret_value) | |
Constructs a bind_return_functor object that fixes the return value to _A_ret_value. More... | |
| unwrap_reference< T_return >::type | operator() () |
| Invokes the wrapped functor dropping its return value. More... | |
| template<class... T_arg> | |
| unwrap_reference< T_return >::type | operator() (T_arg..._A_a) |
| 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... | |
Public Attributes | |
| bound_argument< T_return > | ret_value_ |
| The fixed return value. More... | |
Public Attributes inherited from sigc::adapts< T_functor > | |
| adaptor_type | functor_ |
| Adaptor that is invoked from operator()(). More... | |
Adaptor that fixes the return value of the wrapped functor.
Use the convenience function sigc::bind_return() to create an instance of sigc::bind_return_functor.
The following template arguments are used:
| using sigc::bind_return_functor< T_return, T_functor >::result_type = typename unwrap_reference<T_return>::type |
|
inline |
Constructs a bind_return_functor object that fixes the return value to _A_ret_value.
| _A_functor | Functor to invoke from operator()(). |
| _A_ret_value | Value to return from operator()(). |
| unwrap_reference< T_return >::type sigc::bind_return_functor< T_return, T_functor >::operator() | ( | ) |
Invokes the wrapped functor dropping its return value.
|
inline |
Invokes the wrapped functor passing on the arguments.
| _A_a... | Arguments to be passed on to the functor. |
| bound_argument<T_return> sigc::bind_return_functor< T_return, T_functor >::ret_value_ |
The fixed return value.
1.8.9.1