| Function objects, function templates, and passage by behavior in C++ |
| Full text |
Pdf
(452 KB)
|
| Source
|
Technical Symposium on Computer Science Education
archive
Proceedings of the twenty-eighth SIGCSE technical symposium on Computer science education
table of contents
San Jose, California, United States
Pages: 35 - 38
Year of Publication: 1997
ISBN:0-89791-889-4
Also published in ...
|
|
Author
|
|
Richard Rasala
|
Northeastern University, College of Computer Science, Boston, MA
|
|
| Sponsor |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 14, Downloads (12 Months): 39, Citation Count: 8
|
|
|
ABSTRACT
Passing functions and function objects to general purpose routines is a powerful abstraction mechanism that should be taught in freshman computer science. In C++, a "function" can be defined directly by the user or by a library or can be defined indirectly via operator() as a member function of a class. It is not obvious how to treat these "functions" in a uniform manner. We will show how function templates in C++ provide an elegant and teachable mechanism for passing entities with functional behavior as arguments to other functions.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
|
| |
3
|
|
| |
4
|
|
| |
5
|
|
| |
6
|
Pattis, Richard, Teaching C++ as an Introductory Programming Language (an electronic newsletter), Vol 1::2, February 15, 1996. Contaet: pattis@aem.org,
|
| |
7
|
|
| |
8
|
|
CITED BY 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Joseph Bergin , Viera K. Proulx , Alyce Faulstich Brady , Stephen Hartley , Charles Kelemen , Frank Klassner , Amruth Kumar , Myles McNally , David Mutchler , Richard Rasala , Rocky Ross, Resources for next generation introductory CS courses: report of the ITiCSE'99 working group on resources for the next generation CS 1 course, Working group reports from ITiCSE on Innovation and technology in computer science education, p.101-105, June 27-30, 1999, Cracow, Poland
|
|
|
|
|
|
|
|
|
|
|