2020•Apress eBooksRequires access

Programming at Compile Time

Ray Lischner

Open publisher page 1 citations

Abstract

C++ offers many opportunities to write code that runs at compile time instead of at runtime. Templates, for example, provide a unique, functional programming environment, albeit one with a tortuous syntax. In C++ 20, some new keywords offer more precise ways for you to control what takes place at compile time instead of runtime. Some compile-time programming techniques are called metaprogramming, but this term is loosely defined and some may use it exclusively for programming with types instead of values. However you name it, compile-time programming is a valuable aspect of overall C++ programming.

About this research paper

What this paper is about

C++ offers many opportunities to write code that runs at compile time instead of at runtime. Templates, for example, provide a unique, functional programming environment, albeit one with a tortuous syntax. In C++ 20, some new keywords offer more precise ways for you to control what takes place at compile time instead of runtime. Some compile-time programming techniques are called metaprogramming, but this term is loosely defined and some may use it exclusively for programming with types instead of values. However you name it, compile-time programming is a valuable aspect of overall C++ programming.

Why it matters

OpenAlex reports 1 citations for this work. Citation counts describe recorded attention and do not establish research quality.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

C++ offers many opportunities to write code that runs at compile time instead of at runtime. Templates, for example, provide a unique, functional programming environment, albeit one with a tortuous syntax. In C++ 20, some new keywords offer more precise ways for you to control what takes place at compile time instead of runtime. Some compile-time programming techniques are called metaprogramming, but this term is loosely defined and some may use it exclusively for programming with types instead of values. However you name it, compile-time programming is a valuable aspect of overall C++ programming.

Key concepts: Compile time, Computer science, Compiler, Programming language, Template, Metaprogramming, Syntax, Generic programming

Related papers

Back to paper searchBrowse research topicsOriginal source
Programming at Compile Time — Research Paper | ScholarLens