Title
Support for the evolution of C++ generic functions
Abstract
The choice of requirements for an argument of a generic type or algorithm is a central design issue in generic programming. In the context of C++, a specification of requirements for a template argument or a set of template arguments is called a concept. In this paper, we present a novel tool, TACE (template analysis and concept extraction), designed to help programmers understand the requirements that their code de facto imposes on arguments and help simplify and generalize those through comparisons with libraries of well-defined and precisely-specified concepts. TACE automatically extracts requirements from the body of function templates. These requirements are expressed using the notation and semantics developed by the ISO C++ standards committee. TACE converts implied requirements into concept definitions and compares them against concepts from a repository. Components of a well-defined library exhibit commonalities that allow us to detect problems by comparing requirements from many components: Design and implementation problems manifest themselves as minor variations in requirements. TACE points to source code that cannot be constrained by concepts and to code where small modifications would allow the use of less constraining concepts. For people who use a version of C++ with concept support, TACE can serve as a core engine for automated source code rejuvenation.
Year
DOI
Venue
2010
10.1007/978-3-642-19440-5_8
SLE
Keywords
Field
DocType
generic function,source code,precisely-specified concept,concept definition,constraining concept,concept support,template argument,iso c,tace point,concept extraction,automated source code rejuvenation,generic programming,generating function
Notation,Programming language,Software engineering,Computer science,Source code,Template,Concept extraction,Generic programming,Semantics
Conference
Volume
ISSN
Citations 
6563
0302-9743
2
PageRank 
References 
Authors
0.42
7
3
Name
Order
Citations
PageRank
Peter Pirkelbauer1529.37
Damian Dechev28122.87
Bjarne Stroustrup336296.58