"Fossies" - the Fresh Open Source Software Archive

Member "libsigc++-3.0.0/docs/docs/reference/html/structsigc_1_1hide__functor.html" (5 Sep 2019, 12151 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 | List of all members
sigc::hide_functor< I_location, T_functor > Struct Template Reference

Adaptor that adds a dummy parameter to the wrapped functor. More...

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

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

Public Member Functions

 hide_functor (const T_functor& func)
 Constructs a hide_functor object that adds a dummy parameter to the passed functor. More...
 
template<typename... T_arg>
decltype(auto) operator() (T_arg&&...a)
 Invokes the wrapped functor, ignoring the argument at index I_location (0-indexed). More...
 
- Public Member Functions inherited from sigc::adapts< T_functor >
 adapts (const T_functor& 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, typename T_functor>
struct sigc::hide_functor< I_location, T_functor >

Adaptor that adds a dummy parameter to the wrapped functor.

Use the convenience function sigc::hide() to create an instance of sigc::hide_functor.

The following template arguments are used:

Constructor & Destructor Documentation

template <int I_location, typename T_functor >
sigc::hide_functor< I_location, T_functor >::hide_functor ( const T_functor &  func)
inlineexplicit

Constructs a hide_functor object that adds a dummy parameter to the passed functor.

Parameters
funcFunctor to invoke from operator()().

Member Function Documentation

template <int I_location, typename T_functor >
template <typename... T_arg>
decltype(auto) sigc::hide_functor< I_location, T_functor >::operator() ( T_arg &&...  a)
inline

Invokes the wrapped functor, ignoring the argument at index I_location (0-indexed).

Parameters
aArguments to be passed on to the functor, apart from the ignored argument.
Returns
The return value of the functor invocation.