SimpleConcepts: A Lightweight Extension to C++ to Support Constraints on Generic Types.

Saved in:
Bibliographic Details
Title: SimpleConcepts: A Lightweight Extension to C++ to Support Constraints on Generic Types.
Authors: Milewicz, Reed1 rmmilewi@cis.uab.edu, Mernik, Marjan2 marjan.mernik@uni-mb.si, Pirkelbauer, Peter1 pirkelbauer@uab.edu
Source: Computer Science & Information Systems. Oct2014, Vol. 11 Issue 4, p1361-1379. 19p.
Subjects: Generic programming (Computer science), Computer programming, Design templates, Grammar, Committees
Abstract: Generic programming plays an essential role in C++ software through the use of templates. However, both the creation and use of template libraries is hindered by the fact that the language does not allow programmers to specify constraints on generic types. To date, no proposal to update the language to provide concepts has survived the committee process. Until that time comes, as a form of early support, this paper introduces SimpleConcepts, an extension to C++11 that provides support for concepts, sets of constraints on generic types. SimpleConcepts features are parsed according to an island grammar and source-to-source translation is used to lower concepts to pure C++11 code. [ABSTRACT FROM AUTHOR]
Copyright of Computer Science & Information Systems is the property of ComSIS Consortium and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
Description
Abstract:Generic programming plays an essential role in C++ software through the use of templates. However, both the creation and use of template libraries is hindered by the fact that the language does not allow programmers to specify constraints on generic types. To date, no proposal to update the language to provide concepts has survived the committee process. Until that time comes, as a form of early support, this paper introduces SimpleConcepts, an extension to C++11 that provides support for concepts, sets of constraints on generic types. SimpleConcepts features are parsed according to an island grammar and source-to-source translation is used to lower concepts to pure C++11 code. [ABSTRACT FROM AUTHOR]
ISSN:18200214
DOI:10.2298/CSIS131209053M