Loading...
Please wait, while we are loading the content...
Similar Documents
The function concept in C++: an empirical study
| Content Provider | ACM Digital Library |
|---|---|
| Author | Lincke, Daniel Schupp, Sibylle |
| Abstract | Higher-order functions are essential for generic programming. While they are naturally supported in functional programming languages, there are no higher-order functions in C++. There, various function datatypes exist that simulate the effect of higher-order programming in different ways - as classes designed in the imperative, object-oriented, or meta-programming spirit. With the recent addition of concepts, another alternative for supporting parameterization by functions has yet become available. No guidelines exist, however, whether, or when, to prefer a concept for functions over any of the existing function datatypes; nor have the function datatypes themselves been compared. We provide an empirical study that assesses performance, expressivity, and convenience. The study shows that the function concept mechanism is faster and at least as expressive as the best function datatype, but, due to the principal difference between concept- and type-based approaches, also less convenient to use. |
| Starting Page | 25 |
| Ending Page | 36 |
| Page Count | 12 |
| File Format | |
| ISBN | 9781605585109 |
| DOI | 10.1145/1596614.1596619 |
| Language | English |
| Publisher | Association for Computing Machinery (ACM) |
| Publisher Date | 2009-08-30 |
| Publisher Place | New York |
| Access Restriction | Subscribed |
| Subject Keyword | Concepts C++ Higher-order functions |
| Content Type | Text |
| Resource Type | Article |