libsigc++
2.3.1
|
libsigc++ ships with basic lambda functionality and the sigc::group adaptor, which uses lambdas to transform a functor's parameter list. More...
Modules | |
group() | |
sigc::group() alters an arbitrary functor by rebuilding its arguments from one or more lambda expressions. | |
Classes | |
struct | sigc::lambda_base |
A hint to the compiler. More... | |
struct | sigc::lambda< T_type > |
Lambda type. More... | |
libsigc++ ships with basic lambda functionality and the sigc::group adaptor, which uses lambdas to transform a functor's parameter list.
The lambda selectors sigc::_1, sigc::_2, ..., sigc::_9 are used to select the first, second, ..., nineth argument from a list.
Operators are defined so that, for example, lambda selectors can be used as placeholders in arithmetic expressions.
If your compiler supports C++11 lambda expressions, they are often a good alternative to libsigc++'s lambda expressions. The following examples are equivalent to the previous ones.