An Expression Template aware Lambda Function (2000) [10 citations — 2 self]
Abstract:
. Template libraries such as the STL contain several generic algorithms that expect functions as arguments and thereby cause a frequent use of function objects. User-defined function objects are awkward because they must be declared as a class in namespace scope before they may be used. In this paper, we describe a lambda function for C++, which allows users to define function objects on the fly, without writing class declarations. We show that, by using expression templates, the lambda function can be implemented without hurting the runtime performance of a program. Expression templates can also help to overcome the performance penalties that may arise when using expressions over user-defined types. Thus, we based our approach on PETE which is a framework that simplifies the addition of expression template functionality to user-defined classes. 1. Introduction The Standard Template Library (STL) [C++] contains many function objects that mimic Higher Order Functions (HOFs)....
Citations
| 100 | Expression Templates – Veldhuizen - 1995 |
| 80 | Using C++ Template Metaprograms – Veldhuizen - 1995 |
| 27 | and Yannis Smaragdakis. Functional programming in C – McNamara - 2000 |
| 2 | Krzysztof Czarnecki: Generative Programming – Eisenecker - 2000 |
| 2 | The Lambda Library. http://lambda.cs.utu.fi – Jarvi, Powell - 2000 |

