| Title: | SimpleConcepts: a lightweight extension to C++ to support constraints on generic types |
|---|
| Authors: | ID Milewicz, Reed (Author) ID Mernik, Marjan (Author) ID Pirkelbauer, Peter (Author) |
| Files: | Computer_Science_and_Information_Systems_2014_Milewicz,_Mernik,_Pirkelbauer_SimpleConcepts_A_lightweight_extension_to_C_to_support_const.pdf (299,20 KB) MD5: 054183FB6A0EDDB2B33B7B924A7F757A PID: 20.500.12556/dkum/37446ce9-5e25-4ce4-89bf-6d3241107ecb
http://www.doiserbia.nb.rs/Article.aspx?ID=1820-02141400053M
|
|---|
| Language: | English |
|---|
| Work type: | Scientific work |
|---|
| Typology: | 1.01 - Original Scientific Article |
|---|
| Organization: | FERI - Faculty of Electrical Engineering and Computer Science
|
|---|
| 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. |
|---|
| Keywords: | generic programming, C++ templates, C++ concepts |
|---|
| Publication status: | Published |
|---|
| Publication version: | Version of Record |
|---|
| Year of publishing: | 2014 |
|---|
| Number of pages: | str. 1361-1379 |
|---|
| Numbering: | Letn. 11, št. 4 |
|---|
| PID: | 20.500.12556/DKUM-66725  |
|---|
| ISSN: | 1820-0214 |
|---|
| UDC: | 004.434 |
|---|
| ISSN on article: | 1820-0214 |
|---|
| COBISS.SI-ID: | 17971222  |
|---|
| DOI: | 10.2298/CSIS131209053M  |
|---|
| NUK URN: | URN:SI:UM:DK:U9OKUQOL |
|---|
| Publication date in DKUM: | 06.07.2017 |
|---|
| Views: | 1338 |
|---|
| Downloads: | 410 |
|---|
| Metadata: |  |
|---|
| Categories: | Misc.
|
|---|
|
:
|
Copy citation |
|---|
| | | | Average score: | (0 votes) |
|---|
| Your score: | Voting is allowed only for logged in users. |
|---|
| Share: |  |
|---|
Hover the mouse pointer over a document title to show the abstract or click
on the title to get all document metadata. |