Evaluation of expression templates in C++14
- Authors: Lebedev P.A.1
-
Affiliations:
- National Research University Higher School of Economics
- Issue: Vol 42, No 3 (2016)
- Pages: 142-154
- Section: Article
- URL: https://journal-vniispk.ru/0361-7688/article/view/176426
- DOI: https://doi.org/10.1134/S0361768816030051
- ID: 176426
Cite item
Abstract
In this work we discuss usage of expression templates with features of modern C++ language standards. We give an evaluation model for expression templates that accounts for requirements of operator implementation functions. An algorithm for evaluation of expression templates in this model is presented with proof of its optimality. In conclusion we describe implementation methods that are necessary for implementing this algorithm on modern compilers.
About the authors
P. A. Lebedev
National Research University Higher School of Economics
Author for correspondence.
Email: cygnus@michiru.ru
Russian Federation, ul. Tallinskaya, 34, Moscow, 123458
Supplementary files
